Different results

Different results

Postby Arunas » Sat May 06, 2017 10:22 pm

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');
}
}
Attachments
Chrome.JPG
Chrome.JPG (20.97 KiB) Viewed 335 times
IE.JPG
IE.JPG (20.2 KiB) Viewed 335 times
Arunas
 
Posts: 16
Joined: Sun Feb 08, 2015 7:49 am

Return to General



cron