javascript - Check Box Validation -
in 'leave type' dropdown there 3 fields casual leave, maternity leave. 1,2,3,4,5... these date fields , have converted these fields days.
i want ensure if 'leave type' selected index 0 couldn't check check box.
function(leavetypeselectedindex,chk) { if(leavetypeselectedindex==0) { chk..checked = false; } }
i have tried i'm not going destination. how do that. , in advance
i think way try uncheck checkbox problem. see https://stackoverflow.com/a/17420580/524913 .
basically, need do:
$(chk).attr('checked', false);
Comments
Post a Comment