jQuery [attribute=value] ရွေးချယ်မှု
ဥပမာ
တန်ဖိုး "chose" ဖြင့် id attribute ပါရှိသော အစိတ်အပိုင်းတိုင်းကို ရွေးပါ-
$("[id=choose]")
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
[attribute=value] ရွေးချယ်သူသည် သတ်မှတ်ထားသော အရည်အချင်းနှင့် တန်ဖိုးများဖြင့် အစိတ်အပိုင်းတစ်ခုစီကို ရွေးချယ်သည်။
အထားအသို
$("[attribute=value]")
Parameter | Description |
---|---|
attribute | Required. Specifies the attribute to find |
value | Required. Specifies the value to find |