复制代码代码如下:
<script>
وظيفة dclick1 () {
var txtn = document.getElementSbyTagName ("input") ؛
لـ (i = 0 ؛ i <txtn.length ؛ i ++) {
if (txtn [i] .type = "text") {
txtn [i] .readonly = false ؛
}
}
}
</script>
<type type = "text" id = "contactus1" readOnly>
<input type = "text" id = "contactus2" readOnly>
<type type = "text" id = "contactus3" readOnly>
<type type = "button" name = "button4" value = "修改" onClick = "doclick1 () ؛" />