Skip to content
Advertisement

Issue with 2 file upload button

I have two upload button (Upload Photo) & (Upload Signature). The issue is on same time only one button is uploading file second button is not uploading file, when I change the input ID on that time both buttons not working, I have placed both html code and script code and I want uploaded file name with path, Please fix the issue.

JavaScript
JavaScript

Advertisement

Answer

You need to delegate

  1. I changed id to class everywhere
  2. I wrapped the two sets in one container

JavaScript
JavaScript
JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement