Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
See more:
Hi i have a form which is having only one fileupload button when the form load, after that user can have multiple fileuploads upto 5 one by one, by clicking a button. So they can upload 5 files at a time, or else single file, it's users choice. Now i want know whether user selected the second fileupload), so that my validation should have been changed.
Posted
Comments
Sandeep Mewara 29-Jan-13 8:07am    
Find the instances of fileupload control in JS. If input tag with file or fileupload control. Using jQuery via selectors would be easy.

1 solution

You can give IDs to the FileUpload tags when you add them to the page, and then of course you can search them by ID (using getElementById)

Or you can select all the JS FileUpload elements and then see if they match your criteria.

Cheers,
Edo
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900