表单对象属性选择器
摘要:$("input:enabled") $("input:disabled") $(":checkbox:checked") $(":checkbox:not(:checked) $("select option:selected") 1 2 3 4 5 6...
阅读全文
posted @
2014-06-25 20:32
wf110
阅读(539)
推荐(0)
表单选择器
摘要:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1...
阅读全文
posted @
2014-06-25 20:30
wf110
阅读(274)
推荐(0)
属性选择器
摘要:$("div[id]") $("input[name='newsletter']") $("input[name!='newsletter']") $("input[name^='news']") $("input[name$='letter']") $("input[name*='e'...
阅读全文
posted @
2014-06-25 20:29
wf110
阅读(366)
推荐(0)
子元素选择器
摘要:$("ul li:first-child") $("ul li:last-child") $("ul li:only-child") $("ul li:nth-child(1)"),索引,从1开始 1 2 3 4 5 6 7 8 ...
阅读全文
posted @
2014-06-25 20:29
wf110
阅读(237)
推荐(0)
可见性选器
摘要:$("table tr:hidden") $("table tr:visible") 1 2 3 4 5 6 7 8 9 Value 110 11 12 Value 21...
阅读全文
posted @
2014-06-25 20:28
wf110
阅读(273)
推荐(0)
内容选择器
摘要:内容选择器[selector_4.html] $("div:contains('John') $("p:empty") $("div:has('p') $("p:parent") 1 2 3 4 5 11 12 13 John Resi...
阅读全文
posted @
2014-06-25 20:25
wf110
阅读(335)
推荐(0)
层次选择器[selector_2.html]
摘要:层次选择器[selector_2.html] $("form input"):祖先 后代 $("form>input"):父亲>直接小孩 $("form+input"):兄弟的第一个,只包括form元素下面 $("form~input"):所有兄弟,只包括fo...
阅读全文
posted @
2014-06-25 20:24
wf110
阅读(623)
推荐(0)
增强基本选择器[selector_3.html]
摘要:增强基本选择器[selector_3.html] $("ul li:first") $("ul li:last") $("table tr:even") $("table tr:odd") $("table tr:eq(0)") $("table tr:gt(0)") $(...
阅读全文
posted @
2014-06-25 20:24
wf110
阅读(460)
推荐(0)
基本选择器
摘要:(1)基本选择器[selector_1.html] $("#id") $("div") $(".oneClass") $("p,div,span") $("#id,div,.oneClass") div1 div2 span ...
阅读全文
posted @
2014-06-25 20:23
wf110
阅读(264)
推荐(0)
jquery 入门与知识
摘要:一)什么是jQuery? 【以封装的思想,重构>】 第三方组织预先写好的一些实用JS文件、类,方法,都统称为JS实用库,免费放在网上,同时配有相关的学习文档和案例, 像以上实用库有很多,其它在JavaEE领域比较著名是的jQuery。 *二)为什么要使用jQuery? (1)...
阅读全文
posted @
2014-06-25 20:22
wf110
阅读(229)
推荐(0)
dom与jquery互相转换
摘要:1 /*取得标签中的value属性的内容[dom对象->jquery对象] 2 var inputElement = document.getElementById("inputID");//DOM对象 3 var $input = $(inputE...
阅读全文
posted @
2014-06-25 14:55
wf110
阅读(1399)
推荐(0)