复制代码代码如下:
<Скрипт>
функция doclick1 () {
var txtn = document.getElementsbytagname ("input");
for (i = 0; i <txtn.length; i ++) {
if (txtn [i] .type = "text") {
txtn [i] .readonly = false;
}
}
}
</script>
<input type = "text" id = "contactus1" readonly>
<input type = "text" id = "contactus2" readonly>
<input type = "text" id = "contactus3" readonly>
<input type = "кнопка" name = "button4" value = "修改" onclick = "doclick1 ();" />