HTML <फ़ील्डसेट> नाम विशेषता
उदाहरण
एक <फ़ील्डसेट> एक नाम विशेषता के साथ:
<form action="/action_page.php" method="get">
<fieldset name="personalia">
<label for="fname">First name:</label>
<input
type="text" id="fname" name="fname">
</fieldset>
<br>
<button type="button"
onclick="form.personalia.style.backgroundColor='yellow'">
Change background color of fieldset</button>
<input type="submit">
</form>
परिभाषा और उपयोग
विशेषता फ़ील्डसेट के name
लिए एक नाम निर्दिष्ट करती है।
विशेषता का name
उपयोग जावास्क्रिप्ट में तत्वों को संदर्भित करने के लिए किया जाता है, या फॉर्म सबमिट करने के बाद फॉर्म डेटा को संदर्भित करने के लिए किया जाता है।
ब्राउज़र समर्थन
Attribute | |||||
---|---|---|---|---|---|
name | Yes | 11.0 | Yes | Yes | Yes |
वाक्य - विन्यास
<fieldset name="text">
गुण मान
Value | Description |
---|---|
name | Specifies the name of the fieldset |
एचटीएमएल <फ़ील्डसेट> टैग