for file upload type file to display so is fine but how can reset this value on form reset? as with .val(’’); is not wanna remove help???
thanks
for file upload type file to display so is fine but how can reset this value on form reset? as with .val(’’); is not wanna remove help???
thanks
So you’re trying to basically reset a form via javascript, but can’t figure out how to reset a file upload element? Am I understanding that right? If so, here’s a stackOverflow about just that.
To sum up that answer, though, you can’t. What you CAN do, however, is clone all the attributes from that file upload input into a NEW file upload input except the filename, and simply replace the existing input with your newly created one.