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 i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members