GezH
Programmer
- Aug 7, 2002
- 68
Hi, I have the following JQuery code which tests for a checkbox:
It works fine in Firefox, but in IE the debugger throws some kind of "null or not an object" error, and the rest of the script file fails.
"myBox" is the id of the checkbox. Any ideas how I can write this in IE?
Code:
if ($("#myBox").is(":checked")){
// do something
}
It works fine in Firefox, but in IE the debugger throws some kind of "null or not an object" error, and the rest of the script file fails.
"myBox" is the id of the checkbox. Any ideas how I can write this in IE?