Radio.value
JavaScript 1.0+, JScript 1.0+ Nav2+, IE 3+, Opera3+ Syntax
radio.value
Description
The value property of the Radio object represents the VALUE attribute of the HTML <input> tag used to create the radio button.
Example
Listing 7.443 shows how to access the value property.
Listing 7.443 Example of the value Property
<html> <head> <title> Example of the radio value property</title> </head> <body> <form name="form1"> <input type="radio" name=button1 value=1>Box 1 <br><br> <input type="button" value="Get Button Value" onClick='alert("The button value is: " + document.form1.button1.value)'> </form> </body> </html> |
Get Pure JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.