<input type='file' name='pdf'>
This above displays an input box with browse button for selecting files to upload. If you browse and select a file, the path to that file shows up in the input box.
I have a 'remove' button which, when clicked should clear the input box (but not the others in the form - so reset is out).
I have tried the followingwith no luck:
document.form.pdf.value = "";
document.form.pdf= "";
document.form.pdf.value.reset();
document.form.pdf.reset();
Is this is possible and if so, could someone please shed some light?
Thanks.
This above displays an input box with browse button for selecting files to upload. If you browse and select a file, the path to that file shows up in the input box.
I have a 'remove' button which, when clicked should clear the input box (but not the others in the form - so reset is out).
I have tried the followingwith no luck:
document.form.pdf.value = "";
document.form.pdf= "";
document.form.pdf.value.reset();
document.form.pdf.reset();
Is this is possible and if so, could someone please shed some light?
Thanks.
Comment