This works just fine to call an OnChange event:
<FORM>
<SELECT ONCHANGE="alert(this.name + ' changed: ' + this.value)">
<OPTION VALUE="1">Option 1</OPTION>
<OPTION VALUE="2">Option 2</OPTION>
<OPTION VALUE="3">Option 3</OPTION>
</SELECT>
</FORM>
But when I use this styling package:
The OnChange event no longer works.
<FORM>
<SELECT class="styled" ONCHANGE="alert(this.name + ' changed: ' + this.value)">
<OPTION VALUE="1">Option 1</OPTION>
<OPTION VALUE="2">Option 2</OPTION>
<OPTION VALUE="3">Option 3</OPTION>
</SELECT>
</FORM>
Anyway to make the OnChange event with the custom-form-elements.js?
The answer is on the page you linked to ;)
Scroll to the bottom and you will read:
::EDIT::
The
Custom.clear
andCustom.choose
functions are both functions that will be called in theonChange
event. So my guess is you modify the js-file as follows, and see what comes out:Note: instead of writing chunks of code in the js-file, you should just call you own custom function once from the
clear
and/orchoose
function(s).