HTML DOM Label Object
အညွှန်းအရာဝတ္ထု
Label object သည် HTML <label> element ကို ကိုယ်စားပြုသည်။
အညွှန်းအရာဝတ္တုကို ဝင်ရောက်ကြည့်ရှုပါ။
getElementById() ကို အသုံးပြု၍ <label> ဒြပ်စင်တစ်ခုအား သင်ဝင်ရောက်နိုင်သည်။
ဥပမာ
var x = document.getElementById("myLabel");
အညွှန်းအရာဝတ္ထုတစ်ခုဖန်တီးပါ။
document.createElement() နည်းလမ်းကို အသုံးပြု၍ <label> element တစ်ခုကို ဖန်တီးနိုင်သည်-
ဥပမာ
var x = document.createElement("LABEL");
Object Properties ကို အညွှန်းတပ်ပါ။
Property | Description |
---|---|
control | Returns the labeled control |
form | Returns a reference to the form that contains the label |
htmlFor | Sets or returns the value of the for attribute of a label |
စံသတ်မှတ်ချက်များနှင့် အစီအစဉ်များ
Label object သည် စံ ဂုဏ်သတ္တိများ နှင့် ဖြစ်ရပ်များ ကို ပံ့ပိုး ပေးပါသည်။
ဆက်စပ်စာမျက်နှာများ
HTML သင်ခန်းစာ- HTML ပုံစံများ
HTML ရည်ညွှန်း- HTML <label> တဂ်