Created
May 21, 2009 15:27
-
-
Save jlindley/115522 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script type="text/javascript"> | |
function is_it_private(){ | |
var is_private_element = document.getElementsByName("is_private")[0]; | |
alert("Value is " + is_private_element.checked ); | |
} | |
window.onload = is_it_private; | |
</script> | |
</head> | |
<body> | |
<form > | |
<p> | |
<label>Private?</label> | |
<input name="is_private" type="checkbox" /> | |
</p> | |
</form> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment