I am working on a simple thing to uncheck all radio buttons in a sec when a page is loaded. For a bit, I've been tearing my hair out about this:
alert('uncheck');
$("input[name=PreviousMailAID]:checked").prop('checked', false);
alert('uncheck2');
What happens is I get the first alert, then the radio button is unchecked, but I do not get the next alert.
Does anyone know why .prop causes execution to fail without error?
EDIT: It's jQuery 1.3.2 that I'm using with this, in Chrome.
Works fine. demo
PS: .prop()
comes from jQuery 1.6, before that you have to use .attr()
method.