Get select object

Hi ,

I have a drop down in form. I wanted to add “onchange” event for this select. My UI is rendered from XML. Can anyone help me in getting this.

I tried using below code but it returned null.

var selectObject = myForm.getSelect("selCategory"); 

XML:
<item type="select" value="" label="Category:" name="selCategory">
     <option value="TEST1" label="TEST1"/>
     <option value="TEST2" label="TEST2"/>
</item>	

Ok found issue. I now got the object but unable to attach onChange event to this object.

Hi

myForm.attachEvent(“onChange”, function(){});