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.