Radio Button status Example : RadioButton Radio « Form Control « JavaScript DHTML
- JavaScript DHTML
- Form Control
- RadioButton Radio
Radio Button status Example
<html>
<head>
<script language="JavaScript">
function function2() {
var m = document.all.myRadioButton.status;
alert(m);
}
function function3() {
var m = document.all.myCheckBox.status;
alert(m);
}
</script>
</head>
<body>
<input type="radio" id="myRadioButton" checked>Radio
<input type="button" value="Check Status" onclick="function2();">
<input type="checkbox" id="myCheckBox">Checkbox
<input type="button" value="Check Status" onclick="function3();">
</body>
</html>
Related examples in the same category