Skip to content

onClick event on does not fire in Internet Explorer

  1. Remove the events from the options, use an event directly on the select instead.
  2. function myfunc(value) {
  3. ย  alert(value);
  4. }
  5. <select onchange=“myfunc(this.options[this.selectedIndex].value)”>
  6. ย  <option value=“1”>Item1</option>
  7. ย  <optionย  value=“2”>Item2</option>
  8. </select>