if is checked take value one and if not take another value in jquery 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'; }