this piece of code works, the function daysCheck() can be found in a seperate js file included in the head.
a bit further in the file this piece of code can be found.
And this doesn't work, the function soort() can be found in the same file as daysCheck().
soort() looks like: (just for testing)
on the other hand if I do this it does give the alert.
note that the select elements can be found in the same (and only) form on the page. And that the very first piece of code is generated with php. I tried different browsers (IE, FF, chrome, safari) and none of them works.
Code:
<select id="month" name="month" class="dateselect" onChange="daysCheck()"> <option ... ...</option> </select> <select id="year" name="year" class="dateselector" onChange="daysCheck()"> <option ... ...</option> </select>
Code:
<select id="soort" name="soort" onChange="soort()"> <option disabled="disabled">...</option> <option ... ...</option> </select>
soort() looks like: (just for testing)
Code:
function soort()
{
alert('hello');
}
Code:
<select id="soort" name="soort" onChange="alert('hello')">
<option disabled="disabled">...</option>
<option ...
...</option>
</select>
Comment