I am facing an issue with the onChange
event on a select
element.
When I use alert(this.value)
, it works fine on Firefox, but not on Internet Explorer. What could be causing this discrepancy?
Below is the code snippet in question:
<select onchange="new Ajax.Updater('fiches', '/~project/index.php/folder/fiche', {asynchronous:true, evalScripts:true, parameters:'fiche=' + this.value});" class="input" id="fiche" name="fiche">
<option value="0">Choose my record</option>
<option value="1">You are employed</option>
<option value="2">Unemployed</option>
</select>