Hi All, I am sure this is an easy question for someone in here. Is there a better, cleaner, shorter way to write this:
if ( ($('#price_group_lesson').attr("value") == 'B') || ($ ('#price_group_lesson').attr("value") == 'C') || ($ ('#price_group_lesson').attr("value") == 'D') ){ $('#price_group_lesson_yes').slideDown('fast');} else{$('#price_group_lesson_yes').slideUp('fast');} I am creating a pretty custom questionnaire, and it has a lot of logic in it. I wish I didn't have to type it all out like that. I am sure there is something in javascript or jquery where I can say $ ('#var').attr('value').in("A","B","C") Thanks