javascript - Copying INPUT FILE value to INPUT TEXT with click in jQuery -


I would like to copy the value of an input: file for input: text I can do it with javascript scheme but I would like to know how to do it with jQuery.

---- javascript

  // What this script would look like with plain javascript / it works fine. I just want to know what to do with jQuery. Function fake script () {var filepath; Filepath = document.adminForm.tumb.value; Filepath = filepath.substring (filepath.lastIndexOf ('\\') + 1, filepath.length); Document.adminForm.tumbFake.value = Filepath; }  

If you have something that works in "plain javascript" It will also work with JQuery: jquery is just a library that adds functions - it's (or there is some kind of bug in it ^^)


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -