I am trying to select an item of dropdown by its text. I can't select them by value because value will be different everytime.
$("#rn_SelectionInput_7_attend_session_time option").each( function(){ alert($(this).text()==radioValue);// this evaluate to true when a matching item is found if( $(this).text()==radioValue) { $("#rn_SelectionInput_7_attend_session_time").selectedIndex=$(this.index()); // this doesn't do anything } }); Thanks,