I have a JSF selectOneMenu
and need to select option 2 (out of 3) dynamically with jQuery. I use the $('[id$=tripple_choice]').show();
$('[id$=tripple_choice]').hide();
to show/hide the whole menu.
UPDATE:
The generated HTML is:
<select name="view:custform:tripple_choice" size="1" class="" id="view:custform:tripple_choice">
<option value="" selected="true">-- Select --</option>
<option value="opt1">opt1</option>
<option value="opt2">opt2</option>
</select>
Any ideas?