This topic is: resolved
- This topic has 3 replies, 2 voices, and was last updated 3 years, 6 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Home › Forums › Quform PHP › reset upload fields
I was asking on Envato about being able to reset upload fields and you suggested inserting this link
Reset
next to the field, and inserting this into the scripts.js file:
$('.reset-file').on('click', function (e) {
e.preventDefault();
var $files = $(this).closest('.quform-element').find('input[type="file"]');
$files.each(function () {
$(this).replaceWith($(this).val('').clone(true));
});
});
but I cannot get it to work. I’ve put the link directly under the div containing the upload field. See here
Thanks
Sorry I can’t get the system to preserve the link as you gave it, but it has a class of reset-file.
You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
That works, thanks.