Page 1 of 1

Different results

PostPosted: Sat May 06, 2017 10:22 pm
by Arunas
Hi.

I have Check Box and its event Onchange. When I check Check Box on IE or Edge I get one result (wrong), when check on Chrome or Mozilla - other (correct). Why?
My Function:
function CheckBox_event() {
if ($('#CheckBox').val() == 0) {
$('#Text1').prop('readonly',true);
$('#Text1').css('background-color','silver');
$('#Text1').val(0).change();
} else {
$('#Text1').prop('readonly',false);
$('#Text1').css('background-color','white');
}
}