The OnClientSelectedIndexChanged client-side event occurs immediately after the selected item has changed.

The event handler receives two parameters:

  1. The instance of the combobox firing the event.

  2. An eventArgs parameter containing the following method:

  • get_item returns the item that has just been selected.

  • get_domEvent() returns the DOM event object.

Use this event to respond to the newly selected item:

<script language="javascript" type="text/javascript">
    function OnClientSelectedIndexChanged(sender, eventArgs) {
        var item = eventArgs.get_item();
        sender.set_text("You selected " + item.get_text());


See Also

In this article
Not finding the help you need? Improve this article