且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将一个表单的文件上传字段中的值复制到另一个表单的文本字段?

更新时间:2023-10-11 14:37:52

Just use change() handler for input type file, not keyup:

http://jsfiddle.net/nA37d/169/

 $("input[name='a1']").change(function() {
        $("input[name='b1']").val($(this).val());
    });

For input file to input file, i dont think its possible for security reason.

BTW, this code should be refactorized.

相关阅读

推荐文章