摘要: 1.按钮的id为btnzhuce ==》 控制按钮为禁用: $("#btnzhuce").attr({"disabled":"disabled"}); ==》控制按钮为可用 $("#btnzhuce").removeAttr("disabled");//将按钮可用 阅读全文
posted @ 2018-02-28 20:00 Bob_C 阅读(2742) 评论(0) 推荐(0) 编辑
摘要: window.open("http://www.baidu.com"); 阅读全文
posted @ 2018-02-28 19:56 Bob_C 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 有时候,我们希望表单中的文本框是只读的,让用户不能修改其中的信息,如使<input type="text" name="input1" value="中国"> 的内容,"中国"两个字不可以修改。实现的方式归纳一下,有如下几种。 方法1: onfocus=this.blur()<input type= 阅读全文
posted @ 2018-02-28 19:53 Bob_C 阅读(4618) 评论(0) 推荐(0) 编辑