jquery checked checkbox by id code example
Example: if checkbox checked jquery value 1
var checked = '0'; if($('#checkbox').prop('checked')){ checked = '1'; }
var checked = '0'; if($('#checkbox').prop('checked')){ checked = '1'; }