Hi All, I'm having an issue with Multiple Checkboxes getting selected in JQuery 1.3.2. In this code you can see that I commented out jQuery v 1.2.6, where this code works perfectly. Yet, in 1.3.2 the code no longer works. I would really appreciate it if you would please take a look at my code below and let me know what I'm doing wrong:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>jQuery Checkboxes v1.3.2</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/ jquery.min.js" type="text/javascript"></script> <!--<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/ jquery.min.js" type="text/javascript"></script>--> <script type="text/javascript"> function jqCheckBoxes( id, name ) { $("inp...@name=" + name + "][type='checkbox']").attr('checked', $ ('#' + id).is(':checked')); } </script> </head> <body> <input type="checkbox" name="checkAllMyCB" id="checkAllMyCB" onclick="jqCheckBoxes( this.id, 'testCB' )"/> Check All named "testCB" with JQuery <br /> <input type="checkbox" name="testCB" value="1">1<br /> <input type="checkbox" name="testCB" value="2">2<br /> <input type="checkbox" name="testCB" value="3">3<br /> <input type="checkbox" name="NOTmyCB" value="1">1<br /> </body> </html> ---- Thanks in advance