parent
49a6e90ee7
commit
cbb2c27cff
@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<script>
|
||||
function validator(){
|
||||
if(document.buckyForm.thebox.checked){
|
||||
alert("Yes its checked!");
|
||||
} else {
|
||||
alert("No its not checked!");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form name="buckyForm">
|
||||
<label for="thebox">The box</label>
|
||||
<input id="thebox" type="checkbox" name="thebox"/>
|
||||
<input type="button" value="Press me!" onClick="validator();"/>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in new issue