//Change the onchange to onChange="checkit(this); //and then something like the below in checkit function checkit(selectObj) { var idx = selectObj.selectedIndex; document.frm.Month.disabled = idx == 0; }