function changeDay(monthSelect){ dayVal = day.selected.value; //secili ayi al optVal = monthSelect.selected.value; if(optVal=='Şubat' && dayVal > 29){ modifyDay(29); } } I get this error message for the line dayVal = day.selected.value:
Uncaught TypeError: Cannot read property 'value' of undefined
how can i reach the selected option's value?