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?
The simplest way to get the value:
And it works in all browsers, even IE 6
demo: http://jsfiddle.net/roberkules/8xwhG/