how to use is()

Posted by Ricky on Stack Overflow See other posts from Stack Overflow or by Ricky
Published on 2010-06-04T03:32:03Z Indexed on 2010/06/09 0:52 UTC
Read the original article Hit count: 146

Filed under:

Hi guys,

How to refactor the follow to put NOT is(":checked") syntax, instead put the codes being executed in the else block?

if ($(this).is(":checked")) {
    // do nothing
}
else {
    // To do here
}

Thanks for all the help.

© Stack Overflow or respective owner

Related posts about jQuery