首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

用javascript统制readOnly属性

2012-10-09 
用javascript控制readOnly属性document.form.name.readOnlyfalse或者document.getElementById(name).r

用javascript控制readOnly属性
document.form.name.readOnly=false;

或者

document.getElementById("name").readOnly=false;

关键是readOnly 注意大小写,js中连词首字母大写

热点排行