Get value of a checkbox?

Posted by user246114 on Stack Overflow See other posts from Stack Overflow or by user246114
Published on 2010-06-17T18:49:53Z Indexed on 2010/06/17 18:53 UTC
Read the original article Hit count: 108

Filed under:

Hi,

I have a checkbox, how do I get its value using jquery? I have this example from searching:

var checked = $('input[type=checkbox]:checked').val() != undefined;

but how do I specify which checkbox I'm interested in, I want to only examine a checkbox with a particular id?

Thanks

© Stack Overflow or respective owner

Related posts about jQuery