jquery命令汇总,方便使用jquery的朋友

2020-05-19 07:41:49易采站长站整理


:visible                  $(“table:visible”)                  所有可见的表格


s1,s2,s3                 $(“th,td,.intro”)                    所有带有匹配选择的元素


[attribute]                     $(“[href]”)                           所有带有 href 属性的元素


[attribute=value]    $(“[href=’#’]”)                      所有 href 属性的值等于 “#” 的元素


[attribute!=value]   $(“[href!=’#’]”)                     所有 href 属性的值不等于 “#” 的元素


[attribute$=value]   $(“[href$=’.jpg’]”)                所有 href 属性的值包含以 “.jpg” 结尾的元素


:input                    $(“:input”)                           所有 <input> 元素


:text                      $(“:text”)                             所有 type=”text” 的 <input> 元素


:password              $(“:password”)                     所有 type=”password” 的 <input> 元素


:radio                    $(“:radio”)                           所有 type=”radio” 的 <input> 元素