Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Question about show/hide on drop down selection with jQuery Re: Question about show/hide on drop down selection with jQuery

#50387
pghtech
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();

if (choice == “19”) {
alert (“its 19”);
} else if (choice == “20”) {
alert (“its 20”);
};
});

and I get nothing.