This is a migrated thread and some comments may be shown as answers.
jQuery selector syntax and radComboBox
1 Answer 29 Views
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 17 Oct 2012, 07:25 PM
Hi,

I need some help changing my jquery code to work with the radComboBox instead of a select. I have the following code that selects 2 select boxes.

How can I do the same with 2 radComboBoxes?

var $filters = $('#filters select[name=\"filter\"]');

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 18 Oct 2012, 04:59 AM
Hi Jeff,

You can select a selectbox of a RadCombobox in Jquery as follows.

ASPX:
<telerik:RadComboBox ID="RadComboBox1" runat="server" OnClientDropDownOpened="OnClientDropDownOpened" >
  <Items>
     <telerik:RadComboBoxItem Text="Text1" />
       ..................
  </Items>
</telerik:RadComboBox>

JS:
<script type="text/javascript">
 function OnClientDropDownOpened(sender, args)
 {
  $selectBox = $("#RadComboBox1_DropDown li:contains('Text1')");
  /* Your code */
 }
</script>

Thanks,
Shinu.
Asked by
Jeff
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Share this question
or