HTML DOM name Property
Complete Checkbox Object Reference
Definition and Usage
The name property sets or returns the name of a checkbox.
Syntax
Example
The following example prints the name of the checkbox:
<html>
<body>
<form>
<input type="checkbox" id="check1" name="check1" />
</form>
<p>The name of the checkbox is:
<script type="text/javascript">
document.write(document.getElementById("check1").name)
</script>
</p>
</body>
</html>
|
Try-It-Yourself Demos
Get the
name of a checkbox
Complete Checkbox Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|