标签:
1. <select style="width:195px" name="role" id="role" onfocus="this.defaultIndex=this.selectedIndex;" onchange="this.selectedIndex=this.defaultIndex;">
2.设置disabled属性<select style="width:195px" name="role" id="role" disabled="disabled">
当属性设置为"disabled"时,提交表单时,select的值无法传递,提交前移除disabled属性$("#role").removeAttr("disabled");
jquery添加属性$("#role").attr("disabled","disabled");
标签:
原文地址:http://www.cnblogs.com/htys/p/4479078.html