advanced code snippet search
penguin999 on 07/24/07
jquery checkbox status
7 people have marked this snippet as a favorite
var var_name = $('#checkbox_id').attr('checked')?1:0;
Report this snippet
Nice tip. Also you can use .is(':checked') jQuery method wich is among other methods is explained in this jQuery checkbox article
You need to login to post a comment.