在标签中添加属性
JS
document.getElementById('ID').属性="属性内容"; document.getElementById('txt1').readOnly="readonly"; 添加只读
jq
&("#ID").attr("属性","属性内容")
.NET
this.ID.Attributes.Add("onfocus","this.blur();");
JS
document.getElementById('ID').属性="属性内容"; document.getElementById('txt1').readOnly="readonly"; 添加只读
jq
&("#ID").attr("属性","属性内容")
.NET
this.ID.Attributes.Add("onfocus","this.blur();");