HTML မှာ Attribute ကို အမှန်ခြစ် ပါ။
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
attribute သည်
checked
boolean attribute တစ်ခုဖြစ်သည်။
လက်ရှိအချိန်တွင်၊
<input>
စာမျက်နှာကိုဖွင့်သည့်အခါတွင် အစိတ်အပိုင်းတစ်ခုအား ကြိုတင်ရွေးချယ်ထားသင့်သည် (စစ်ဆေးထားသည်) ဟု သတ်မှတ်သည်။
checked
attribute ကို
<input type="checkbox">
နှင့်
<input type="radio">
.
စာမျက်နှာကို ဖွင့်ပြီးနောက် တွင်
checked
ရည်ညွှန်းချက်ကို JavaScript ဖြင့် သတ်မှတ်နိုင်သည်။
တွေပေါ့။
ရည်ညွှန်းချက်ကို အောက်ပါ
checked
ဒြပ်စင်ပေါ်တွင် အသုံးပြုနိုင်သည်။
ဒြပ် | ဂုဏ်ရည် |
---|---|
<input> | စစ်တယ်။ |
ဥပမာများ
ထည့်သွင်းဥပမာ
ကြိုတင်ရွေးချယ်ထားသော အမှတ်ခြစ်ကွက်ပါရှိသော HTML ဖောင်တစ်ခု-
<form
action="/action_page.php">
<input type="checkbox" name="vehicle" value="Bike"> I have a bike<br>
<input type="checkbox" name="vehicle" value="Car" checked> I have a car<br>
<input type="submit" value="Submit">
</form>
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် attribute ကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးပါသည်။
Attribute | |||||
---|---|---|---|---|---|
checked | 1.0 | 2.0 | 1.0 | 1.0 | 1.0 |