85634/how-to-reset-input-type-file-using-javascript
I want to reset the contents of my file input:
<input type="file" id="uploadCaptureInputFile" class="win-content colors" accept="image/*" />
How should I do that?
Hello @kartik,
You need to wrap <input type = “file”> in to <form> tags and then you can reset input by resetting your form:
onClick="this.form.reset()"
Hope it helps!! Thank You!!
Hello @kartik, Try for YUI Dom.get("gadget_url").set("value",""); with normal Javascript document.getElementById('gadget_url').value = ''; with ...READ MORE
Hii @kartik, Using javascript <script> $("a[href='#top']").click(function() { ...READ MORE
Hello @kartik, Below Function converts the Excel sheet ...READ MORE
Hello @kartik, You don't really access it, you ...READ MORE
Hey @kartik, First you have to go to ...READ MORE
Named route is used to give specific ...READ MORE
Hello, This is simple you just need to ...READ MORE
Hey @kartik, Named routing is another amazing feature of ...READ MORE
For security reasons browsers do not allow ...READ MORE
Hello @kartik, Use this: var filename = fullPath.replace(/^.*[\\\/]/, '') This ...READ MORE
OR
Already have an account? Sign in.