I have a drop down which displays 'value2'. Its id is "select" like below.
<select class="selectOneMenu_Medium_class searchField" id="selectBase"> <option value="Select">Select</option> </select>
option.attr('value', value['value']); option.text(value['value2']); option.attr('label', value['value2']);
Whenever I try to retrieve the value using
$('#selectBase').val() it gives me a value, but I want
value2 also along with this. Can someone helps me in fetching