XF 1.2 onChange event for selectbox

in a template I have a selectbox which shall be dynamically populated when another selectbox changes its value.
so I defined an 'onChange' event in the selectbox tag:
onChange="javascript:toggleChannel(this.value);"

unfortuately, this does not appear in the sourcecode. Did I make a mistake or is this intentionally suppressed?
 
How are you creating the select box?
<xen:select name="channels" value="" title="Channel" inputclass="Tooltip" id="ctrl_channels" onChange="javascript:toggleChannel(this.value);"></td>
xen:foreach loop="$channels" key="$index" value="$channel">
<xen:option value="{$channel.id}" label="{$channel.name}" />
</xen:foreach>
</xen:select>
 
Top Bottom