HTML DOM type Property
Complete Radio Object Reference
Definition and Usage
The type property returns the type of form element. For a radio button object this will always be "radio".
Syntax
Example
The following example returns which type of form element the radio button is:
<html>
<body>
<form>
<input type="radio" id="radio1" />
</form>
<script type="text/javascript">
x=document.getElementById("radio1");
document.write("Form element type is: ");
document.write(x.type);
</script>
</body>
</html>
|
Try-It-Yourself Demos
Get the type
of the form element (radio button)
Complete Radio Object Reference
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|