jQuery [attribute$=value] ရွေးချယ်မှု
ဥပမာ
".org" နှင့်အဆုံးသတ်သော href attribute ဖြင့် <a> အစိတ်အပိုင်းအားလုံးကို ရွေးပါ-
$("a[href$='.org']")
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
[attribute$=value] ရွေးပေးသူသည် သတ်သတ်မှတ်မှတ်စာကြောင်းတစ်ခုတွင် အဆုံးသတ်ထားသော တန်ဖိုးတစ်ခုဖြင့် တိကျသော attribute တစ်ခုဖြင့် ဒြပ်စင်တစ်ခုစီကို ရွေးချယ်သည်။
အထားအသို
$("[attribute$='value']")
Parameter | Description |
---|---|
attribute | Required. Specifies the attribute to find |
value | Required. Specifies the string the value should end with |