例子:
//注意readonly和readOnly,在js中是区分大小写的,注意写对readOnly
function action1(){ addForm.text1.readOnly=true/false;
//或者 //document.getElementById("id1").readOnly=true/false; } // www.jb200.com <input name="text1" id="id1">
CopyRight © 2010-2021 脚本学堂 Jb200.com , All Rights Reserved.