I am trying to dynamically add an on change event to an HTML select object. I can't seem to get it to work. I need the function to call dropDownChange and pass two parameters, this and nextDepth.
var nextDepth = (int)......
var selectBox = ......
selectBox.onchange += function(nextDepth){dropDownChange(this, nextDepth);};
Not really sure how to tackle this... I figured this could would work. Any help you be GREATLY appreciated.
Thanks!