I have this line of code for page load:
if ($(\"input\").is(\':checked\')) {
and it works fine when the radio button input is checked. How
if ( ! $("input").is(':checked') )
Doesn't work?
You might also try iterating over the elements like so:
var iz_checked = true; $('input').each(function(){ iz_checked = iz_checked && $(this).is(':checked'); }); if ( ! iz_checked )