用JS实现改变文本框的只读属性

<input id="aaa" readonly>
<input id="bbb" readonly>

<script>
document.getElementById("aaa").readOnly = false;
document.getElementById("bbb").readOnly = false;
</script>

 

 
posted @ 2019-04-05 01:39  程序员宝典  阅读(3128)  评论(0编辑  收藏  举报