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

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?