im trying to uncheck a jquerymobile checkbox with jquery. im trying to uncheck it when a person clicks on a button.
this is me checkbox:
<input id='_inputcb_Q801' name='_inputcb_Q801' type='checkbox'>
<label id='_inputcb_Q801L' for='_inputcb_Q801'>Text</label>
and i have tried those options.
function uncheckCB(){
$('#_inputcb_Q801').prop('checked',false).checkboxradio('refresh');
$('#_inputcb_q801').not(:checked);
$('input[type=\"checkbox\"]:first').attr('checked', false).checkboxradio('refresh');
$('input[name=_inputcb_Q801]').attr('checked',false);
$('input[name=_inputcb_Q801]').prop('checked', false);
}
the function is a onclick of a button.
none of the above options work. anyone knows another way to uncheck a jquerymobile checkbox.
thanks in advance