Home › Forums › CSS › Question about show/hide on drop down selection with jQuery › Re: Question about show/hide on drop down selection with jQuery
October 8, 2008 at 11:23 am
#50387
Member
I am not sure what is going on. I can’t seem to get the simplest of actions to occur.
I even tried to do it by the option values.
Code:
jQuery(“.choice”).change(function() {
var choice = jQuery(“.choice”).val();
var choice = jQuery(“.choice”).val();
if (choice == “19”) {
alert (“its 19”);
} else if (choice == “20”) {
alert (“its 20”);
};
});
and I get nothing.