Created
June 7, 2011 21:19
-
-
Save anonymous/1013193 to your computer and use it in GitHub Desktop.
tums2004 - http://pastebin.com/sBVdBePY
This file contains 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
<script language=javascript type='text/javascript'> | |
function checkAll(chkname) | |
{ | |
if(document.form1['chkname'].checked == true) { | |
alert(chkname); | |
} | |
</script> | |
Input with | |
<input type='checkbox' name='checkbox' onClick='checkAll(this.name)'> | |
throws error | |
document.form1.chkname is undefined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment