HTML <form> autocomplete Attribute
ဥပမာ
အလိုအလျောက်ဖြည့်သွင်းထားသော ဖောင်ပုံစံတစ်ခု-
<form action="/action_page.php" method="get" autocomplete="on">
<label for="fname">First name:</label>
<input type="text" id="fname"
name="fname"><br><br>
<label for="email">Email:</label>
<input type="text" id="email" name="email"><br><br>
<input
type="submit">
</form>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ရည်ညွှန်းချက် သည် autocomplete
ဖောင်တစ်ခုတွင် အလိုအလျောက်ဖြည့်သွင်းခြင်း ရှိ၊
အလိုအလျောက် ဖြည့်သွင်းခြင်းကို ဖွင့်ထားသည့်အခါ၊ အသုံးပြုသူသည် ယခင်က ထည့်သွင်းခဲ့သည့် တန်ဖိုးများအပေါ် အခြေခံ၍ ဘရောင်ဇာမှ တန်ဖိုးများကို အလိုအလျောက် ဖြည့်ပေးပါသည်။
အကြံပြုချက်- ဖောင်အတွက် အလိုအလျောက်ဖြည့်သွင်းမှု "ဖွင့်" နှင့် သီးခြားထည့်သွင်းသည့်အကွက်များအတွက် "ပိတ်" သို့မဟုတ် အပြန်အလှန်အားဖြင့် ဖြစ်နိုင်သည်။
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် attribute ကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးပါသည်။
Attribute | |||||
---|---|---|---|---|---|
autocomplete | Yes | Yes | 4.0 | 5.2 | 15.0 |
အထားအသို
<form autocomplete="on|off">
ရည်ညွှန်းတန်ဖိုးများ
Value | Description |
---|---|
on | Default. The browser will automatically complete values based on values that the user has entered before |
off | The user must enter a value into each field for every use. The browser does not automatically complete entries |
❮ HTML <form> tag