jQuery စကာတင် - လုပ်ဆောင်ချက် စာအုပ် - ရှာဖွေစကာတင်

jQuery စကာတင် - ရှာဖွေစကာတင်

ရှာဖွေသူ အကြောင်းအရာ ရယူ
* $("*") အရာများ
#id $("#lastname") id="lastname" ဖြစ်သော အရာ
.class $(".intro") class="intro" ဖြစ်သော အရာများ
element $("p") အဆိုပါ <p> အရာများ
.class.class $(".intro.demo") class="intro" နှင့် class="demo" ဖြစ်သော အရာများ
     
:first $("p:first") ပထမ <p> အရာ
:last $("p:last") နောက်ဆုံး <p> အရာ
:even $("tr:even") အဆိုပါ အရာများ အား အက္ခရာတူ ဖြစ်သော အဆိုပါ <tr> အရာများ
:odd $("tr:odd") အဆိုပါ အရာများ အား အက္ခရာတူ ဖြစ်သော အဆိုပါ <tr> အရာများ
     
:eq(index) $("ul li:eq(3)") နောက်ဆုံး နောက်ပိုင်း အရာ (index မှ 0 စတင်)
:gt(no) $("ul li:gt(3)") အယူအဆ ဖြစ်သော index ကို 3 ကျော် ဖြစ်သော အရာများ ကို ရှာဖွေသည်
:lt(no) $("ul li:lt(3)") index အား 3 ထက် နည်းသော အရာ စာရင်း
:not(selector) $("input:not(:empty)") အားလုံး မမြတ်တော်မူသော input အရာ
     
:header $(:header) အားလုံး အချက်အလက် <h1> - <h6>
:animated   အားလုံး လှည့်ပတ်သော အရာ
     
:contains(text) $(:contains('W3School')) အသုံးပြုသော အချက်အလက် ဖြစ်သော အရာ
:empty $(:empty) အပိုင်းအခွဲမပါဘဲသော အရာ
:hidden $("p:hidden") အားလုံး ကွဲပြားသော <p> အရာ
: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> အရာ
:checkbox $(:checkbox) အားလုံး type="checkbox" ဖြစ်သော <input> အရာ
:submit $(:submit) အားလုံး type="submit" ဖြစ်သော <input> အရာ
:reset $(:reset) အားလုံး type="reset" ဖြစ်သော <input> အရာ
:button $(:button) အားလုံး type="button" ဖြစ်သော <input> အရာ
:image $(":image") type="image" ရှိသော အကိရိယာ <input>
:file $(":file") type="file" ရှိသော အကိရိယာ <input>
     
:enabled $(":enabled") လုံးဝ ဖြင့် ဖြောင့်ထားသော input အကိရိယာများ
:disabled $(":disabled") လုံးဝ တားမြစ်ထားသော input အကိရိယာများ
:selected $(":selected") လိုက်န်းဆောင်ရာ input အကိရိယာများ
:checked $(":checked") လိုက်န်းဆောင်ရာ input အကိရိယာများ

ကျမ်းကတ္တရာ

ပညာရှင်:jQuery အကိရိယာ ကောက်ခံသူ ပညာရှင်