摘要: 1 <html xmlns="http://www.w3.org/1999/xhtml"> 2 <head> 3 <title></title> 4 5 <script language="javascript" src="js/jquery-1.5.js"></script> 6 7 <script language="javascript"> 8 //计算两文本框的和 9 $(function() {10 $("#b1 阅读全文
posted @ 2011-05-09 16:37 aspneteye 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 1 <html xmlns="http://www.w3.org/1999/xhtml"> 2 <head> 3 <title></title> 4 <style type="text/css"> 5 .t 6 { 7 background-color: Yellow; 8 } 9 </style>10 11 <script language="javascript" src="js/jquery-1.5.js">12 </s 阅读全文
posted @ 2011-05-09 10:31 aspneteye 阅读(124) 评论(0) 推荐(0) 编辑
摘要: $(":text")获取所有单行文本框等价于$("input[type=text]")$(":password")获取所有密码框。同理还有::radio,:checkbox,:submit,:image,:reset,button,:file,:hidden$(":input")选取所有的<input>、<textarea>、<select>、<button>和$("input")不一样后者只获得<input> 阅读全文
posted @ 2011-05-09 09:27 aspneteye 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 1 <html xmlns="http://www.w3.org/1999/xhtml"> 2 <head> 3 <title></title> 4 5 <script language="javascript" src="js/jquery-1.5.js"></script> 6 7 <script language="javascript">//each遍历 8 $(function() { 9 $("input[na 阅读全文
posted @ 2011-05-09 09:18 aspneteye 阅读(94) 评论(0) 推荐(0) 编辑