kamikaze_pilot kamikaze_pilot - 21 days ago 8
HTML Question

trigger file upload dialog using javascript/jquery

instead of using

<input type="file">
, is it possible to use
<input type="text">
and then script it using javascript or jquery such that when the text box is clicked, the file upload dialogue shows up.....(and have it actually uploaded when it's submitted into a form)

Answer

You might want to look at one of the many available jQuery file uploader plugins rather than doing it yourself.

Comments