Uploading file with the same id on different forms on the same page
-
Hey
I was wondering if you can help me with this thing.
I styled the form upload button like this:
—————————–
<div id=”uploadfieldtrick”>
<p>[file YourCV id:fileuploadfield class:fileuploadfield limit:2mb filetypes:doc|pdf|docx 1/]</p>
<p>[text uploadtextfield id:uploadtextfield class:uploadtextfield placeholder "Browse CV"]<input type=”button” id=”uploadbrowsebutton” class=”uploadbrowsebutton” value=”Browse”></p>
</div>
—————————–
this is the jquery
—————————–
(function($) {
/*Brought click function of fileupload button when text field is clicked*/
// $(“#uploadtextfield”).on(“click”, function() {
// $(‘#fileuploadfield’).click()
// });/*Brought click function of fileupload button when browse button is clicked*/
$(“.uploadbrowsebutton”).click(function() {
$(‘#fileuploadfield’).click()
});/*To bring the selected file value in text field*/
$(‘#fileuploadfield’).change(function() {
$(‘#uploadtextfield’).val($(this).val());
});})(jQuery);
—————————–
Now there are more the 5 forms and when I click any of the form upload button only the first form is effected and i need the specific form to be working.
Do you have any idea how to accomplish this?
Thanks in advance
The page I need help with: [log in to see the link]
- The topic ‘Uploading file with the same id on different forms on the same page’ is closed to new replies.