Login Register

how to invoke onchange on ComboBox from javascript function

Hi, I have a newbie question:

I created a ComboBox in HTML and defined an onchange method for it:
onChange="setVal1();handleChangedSector(this.value)"

If I try to invoke this method from a javascript function somewhere else in my code via:
var input = document.getElementById(inputId);
input.onChange();

firefox tells me: input.onChange is not a function

Can anyone tell me how I can let the methods registered in the onChange be executed?

found it

if I replace
var input = document.getElementById(inputId);
with
var input = dijit.byId(inputId);
It works fine