I am trying to use a select/option drop down list so that when you select one of the options other elements are revealed or hidden elsewhere in the page. I have managed to do this with radio buttons using id or class selectors and jquery hide/show functions but can't do it using the select/option drop down list.
Code looks like this:
HTML...
<select name="attending">
<option id="yes" value="Yes">Yes</option>
<option id="yes_partner" value="Yes_Partner">Yes + Partner</option>
<option id="yes_partner_kids" value="Yes_Partner_Kids">Yes + Partner & Kid(s)!!!</option>
<option id="no" value="No">No</option>
</select>
jquery script...
$(function(){
$("#yes").click(function(){
$(".yes").show();
$(".send").show();
$(".yes_partner").hide();
$(".yes_partner_kids").hide();
$(".main_guest").show();
});
});
Have tried with class and id and also tried using jquery select instead of click but no luck. Works with radio buttons but not <option>
.