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