jquery specific choice add-on text
all right, contend i have this:
<select id='list'>
<option value='1'>option a</option>
<option value='2'>option b</option>
<option value='3'>option c</option>
</select>
what selector feeling i wanted "option b" i have value '2'?
please note seeking selected calm value, nonetheless only any them, presumably comparison not, depending value attribute. i tried:
$("#list[value='2']").text();
but working.
Comments
Post a Comment