View Single Post
Old 12-06-2009, 08:12 PM   #6 (permalink)
ETbyrne
how quixotic are you?
 
ETbyrne's Avatar
 
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
ETbyrne is on a distinguished road
Default

Adding onto what Village Idiot said, it is also not possible to set the value of a file input with javascript. For example this jQuery will produce an error and not work:

javascript Code:
jQuery(function(){

    jQuery('input[type=text]').keyup(function(){
   
        // Get value of text box
        var text = jQuery(this).val();
       
        // Set value of file box (produces error)
        jQuery('input[type=file]').val(text);
   
    });

});
__________________
Dingo Web Systems > http://www.dingocode.com
My Website > http://www.evanbot.com
ETbyrne is offline  
Reply With Quote