复制代码代码如下:
<スクリプト>
関数doclick1(){
var txtn = document.getElementsByTagname( "入力");
for(i = 0; i <txtn.length; i ++){
if(txtn [i] .type = "text"){
txtn [i] .readonly = false;
}
}
}
</script>
<入力型= "text" id = "contactus1" readonly>
<入力型= "テキスト" id = "contactus2" readonly>
<入力型= "テキスト" id = "contactus3" readonly>
<入力型= "button" name = "button4" value = "修改" onclick = "doclick1();" />