Radio buttons not checked in jQuery
Posted
by kd7iwp
on Stack Overflow
See other posts from Stack Overflow
or by kd7iwp
Published on 2008-12-16T19:08:52Z
Indexed on
2010/04/01
8:13 UTC
Read the original article
Hit count: 197
jQuery
I have this line of code for page load:
if ($("input").is(':checked')) {
and it works fine when the radio button input is checked. However, I want the opposite. Something along the lines of
if ($("input").not(.is(':checked'))) {
so that my if statement runs when none of the radiobuttons are selected. What is the best way to go about this?
© Stack Overflow or respective owner