我想复制一个输入:文件的值输入:文本。我可以用JavaScript做到这一点,但我想知道如何用jQuery来做到这一点。复制INPUT文件的值输入文本点击jQuery
---- JavaScript的
// This what the script would look like with plain JavaScript
// It works fine. I just woulld like to know who to do it with jQuery.
function fakeScript() {
var filepath;
filepath = document.adminForm.tumb.value;
filepath = filepath.substring(filepath.lastIndexOf('\\')+1, filepath.length);
document.adminForm.tumbFake.value = filepath;
}
这个版本太“纯”雅是什么呢? – 2009-12-05 21:35:23