javascript select value option





1) Im wondering how I can retrieve the index of a select option by knowing its value. I need to select the option by handing in the value likeWhats the javascript code to retrieve the count for radio and select options? The jQuery :selected selector can be used in conjugation with the val() method to find the selected option value in a select box or dropdown list.