Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<html>
<head><title>Checkbox</title>
<script type="text/javascript">
function valid_check(){ [green]//Create Function to validate checkbox[/green]
res=document.getElementById('mycheck').checked; [green]//Get value of the checked property of the checkbox[/green]
return res; [green]//Return the value.
}
</script>
</head>
<body>
<form action=check.php method=POST onsubmit="return valid_check();"> [green]//Use the onsubmit event of the form to perform validation and return a value. False stops the form from submitting, true submits the form.[/green]
<input type=checkbox value="9999" name="mycheck" id="mycheck">
<input type="submit" name="send" value="Send">
</form>
</body>
</html>