在标签中添加属性

 JS

document.getElementById('ID').属性="属性内容";            document.getElementById('txt1').readOnly="readonly";  添加只读

jq

&("#ID").attr("属性","属性内容")

.NET

this.ID.Attributes.Add("onfocus","this.blur();");

 

posted on 2011-12-20 09:31  张扬个性,敢为天下先  阅读(1045)  评论(0编辑  收藏  举报