I'm trying am making a dropdown with 2 questions in it. Say question A and question B. Either option they will get 3 more questions they will answer with a number 1-10. Right now if they choose A it works perfect. But if they select B, the second option it does not work. I have been looking for a way to do this for days and I'm amazed I can't find a easy way. I don't understand why this don't work because what ever they input will go to box1, box2 or box3 anyway. This is my fiddle
$('.myOptions').change(function(){
$('.list').removeClass('active')
.filter('.' + $('.myOptions').children('option:selected').attr('value'))
.addClass('active');
});
$('#butt').click(function () {