Neo's Blog
Share knowledge with the world
摘要: 1,属性过滤器$("input[name=abc]:控件的属性值") //获取所有name="abc" 的checkbox$("div[title!=abc]") //获取所有title不等于abc的div $(function () { $("#select").click(function () { var ckbs = $("input[name=2]:checked");});//name为2 的input控件并且属性为checked的控件集合 ckbs.each(function () 阅读全文
posted @ 2011-06-01 09:50 Neo_Guo 阅读(5351) 评论(0) 推荐(0) 编辑
摘要: 1, Jquery 综合例子 ,给table 设定样式$(function () { $("#tbl tr:first").css("fontSize", "30"); //head // $("#tbl tr:first").next().css("fontSize", "28"); $("#tbl tr:gt(0):lt(3)").css("fontSize", "24"); //头三行大字体显示 $(" 阅读全文
posted @ 2011-05-31 11:04 Neo_Guo 阅读(260) 评论(0) 推荐(0) 编辑
摘要: Jquery2 阅读全文
posted @ 2011-05-31 07:14 Neo_Guo 阅读(494) 评论(0) 推荐(0) 编辑
摘要: 1,ready 函数,类似于onload ,但是可以多次加载和使用, 只要加载完dom模型就会自动触发,不会等待其他元素加载完毕$(function(){...}); 等于 $(document).ready(function(){...});2, $.map(array,fn) 对数组中俄每个元素进行处理,将结果返回一个新数组var arr=[3,6,9];var arr2=$.map(arr,function(item){return item*2});3, $.each(array,fn) 处理每个元素,但不返回一个新数组var arr={"Tom":23," 阅读全文
posted @ 2011-05-30 08:27 Neo_Guo 阅读(305) 评论(0) 推荐(0) 编辑