Label htmlFor attribute
Definition and usage
htmlFor
Set or return the value of the label's for attribute.
label for attribute Specify which form element the label is bound to.
See also:
HTML রেফারেন্স ম্যানুয়েল:HTML <label> ট্যাগ
Example
Example 1
Return the value of the label's for attribute:
var x = document.getElementById("myLabel").htmlFor;
Example 2
Change the value of the label's for attribute:
document.getElementById("myLabel").htmlFor = "newValue";
Syntax
Return htmlFor attribute:
labelObject.htmlFor
set htmlFor attribute:
labelObject.htmlFor = id
প্রতিভাত্ত্ব
মান | বর্ণনা |
---|---|
id | ট্যাগ (label) বান্ধা এলিমেন্টের id |
প্রযুক্তিগত বিবরণ
ফলাফল: | শব্দমালা মান, এটি ট্যাগ (label) বান্ধা এলিমেন্টের id-এর জন্য ব্যবহৃত হয় |
---|
ব্রাউজার সমর্থন
চ্রোম | এজ | ফায়ারফক্স | স্যাফারি | ওপেরা |
---|---|---|---|---|
চ্রোম | এজ | ফায়ারফক্স | স্যাফারি | ওপেরা |
সমর্থন | সমর্থন | সমর্থন | সমর্থন | সমর্থন |
সংশ্লিষ্ট পাতা
HTML রেফারেন্স ম্যানুয়েল:HTML <label> for এটি