[jQuery] Checkboxes, difference in browsers

[jQuery] Checkboxes, difference in browsers


Hello.
I have this JQuery code which works absolutely fine in Firefox:
if ($("#createNewAccount").is(":checked")){
// do stuff
}
The variable 'createNewAccount' is defined as follows:
<input type="checkbox" name="createNewAccount" id="createNewAccount">
But this simply will not work in IE. What am I doing wrong please?