if checkbox is checked add input behind it 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'; }