views:

120

answers:

1

i have dropdownlist with the values:

<select id="myddl" name="myddl">
  <option value="1">One</option>
  <option value="2">Twooo</option>
  <option value="3">Three</option>
</select>

I need to change the text Twooo to Two using the value of the dropdownlist option(2). How can i do it in jquery?

+2  A: 
$('#myddl option[value=2]').text('Two');
Kobi