This is a migrated thread and some comments may be shown as answers.

Seelcted item from client side

1 Answer 32 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Tina
Top achievements
Rank 1
Tina asked on 22 Nov 2011, 02:15 AM
I have a combobox with some items(like Name field).In which client event can I access the selected item text from client side?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 22 Nov 2011, 05:08 AM
Hello Tina,

You can subscribe to the OnClientSelectedIndexChanging event and can access the text.
Javascript:
function OnClientSelectedIndexChanging(sender, args)
 {
      alert(args.get_item().get_text());
 }

Thanks,
Princy.
Tags
ComboBox
Asked by
Tina
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or