when i open website in iphone or ipad then its checkboxes not check through button. this is my code
html:
<td><button type="button" class="btn-u btn-u-dark-blue" id="btnpvtperson" style="border-radius: 10px 0px 0px 0px !important;" >Privatperson</button>
<input type="checkbox" name="delAnn[]" id="checkpvtperson" value="pvt" class="home_type istrow btn-u" style="display:none"></td>
js:
$(document).on('click', '#btnpvtperson', function()
{
if($("#checkpvtperson").prop("checked") == false)
{
$("#checkpvtperson").attr('checked', true);
$("#btnpvtperson").removeClass("btn-u-dark-blue");
$("#btnpvtperson").addClass("btn-u-dark-light");
} else {
$("#checkpvtperson").attr('checked', false);
$("#btnpvtperson").removeClass("btn-u-dark-light");
$("#btnpvtperson").addClass("btn-u-dark-blue");
}
});