var var_name = $('#checkbox_id').attr('checked')?1:0;
source
You must be logged in to post a comment.