Get value of file upload to a hidden text box

upholoped

New Member
I'm trying to get the value or file path from a html file upload control to a hidden input text box as soon as I select a file.\[code\]<input type="file" name="some_name" id="file" /><input type="text" name="text_name" id="abc" style="display:none;" value=""/>\[/code\]and my script looks like:\[code\]$('#file').live('change', function(){ alert("yes"); });\[/code\]so I get the alert box but I would like to change the value of the hidden input field to the path of the file I select. Any help to solve this problem is highly appreciated.
 
Back
Top