none
Attaching onchange event in js RRS feed

  • Question

  • I have a list box named "ItemList" designed in aspx file.

    I want to attach onchange event for this in js for which I have used the below code in js.

     

    document.getElementById("ItemList").attachEvent("onchange", itemList_OnChange);

     

    This gives an error : ItemList is null.

    [May b since control is not rendered]

     

    Which will be the correct place to put this code.

     

    Regards,

    Sharmila.

    Monday, June 23, 2008 11:50 AM