Get Selected Text from Combobox

2 posts, 0 answers
  1. Reshma
    Reshma avatar
    8 posts
    Member since:
    Oct 2013

    Posted 10 Oct 2013 Link to this post

    In my aspx page i am using


     and in save function of javascript in the same page i want to get selected items text and value of that combobox.But i am not able to receive it.
    i used all methods..Text,GetText,.SelectedItem.Text it says 'undefined' always.

    Can anyone help me out??
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 11 Oct 2013 Link to this post

    Hi Reshma,

    Please try the following JavaScript to get the text and value of the RadComboBox selected item.

    <script type="text/javascript">
        function save() {
            var radcombobox = $find('<%=RadComboBox1.ClientID %>');
            var selecteditemtext = radcombobox.get_selectedItem().get_text();
            var selecteditemvalue = radcombobox.get_selectedItem().get_value();

  3. DevCraft R3 2016 release webinar banner
Back to Top