selected value

2 posts, 0 answers
  1. Sigma
    Sigma avatar
    87 posts
    Member since:
    Apr 2012

    Posted 11 Jun 2012 Link to this post

     I am trying to get the combobox selected item and value in the javascript.  Does the accessing of combobox in javascript change based on the version you use?  I am using Telerik 2011.3.1305.35. 

     I have a javascript file and in that i have a function which will accept client id of the radcombobox as a parameter and now how do i get the selected index, selected item and value of that combobox? .

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 11 Jun 2012 Link to this post


    Try the following javascript to achieve your scenario.

    <script type="text/javascript" >
      function OnClientClick()
                var combo = $find("<%=RadComboBox1.ClientID %>");
                var index = combo.get_selectedIndex();
                var item = combo.get_selectedItem();
                var value = combo.get_value();

Back to Top