javascript - Check Box Validation -


enter image description here

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

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -