javascript - resetAllFields in cloned Dropzone.js -
I have a bunch of input elements and one element Now, I duplicate the form to the user (deep When the user clones the form, then I use all input field values - Now, I would like to clear the drop zone element, which I am trying to do - It throws "... no function" error How can I actually reset the drop zone element? I always fixed this problem by maintaining an empty hidden form (with an empty drop zone ), And cloning every time I need it, while I make sure that I assign a unique clone < / code>) - Each form is freely stored through AJAX post.
clone_form. ('Text, input'). Val ('');
cloned_form.find ('form. -dynamic-dropzone ') dropzone.resetAllFields ();
id and
name on each clone form I am
Comments
Post a Comment