Show / hide div with or statements?
Hi gang,
I'm trying to show my DIV with just the 2nd, 3rd, 4th & 5th selection for my "Other subject" option. I can get it to work with just one option or all options, but I can't seem to get it to work with just like 2nd through 5th option.
Please help,
Kind regards.
http://jsfiddle.net/Luck12/DH9CT/3/
- $('input[name="Q14_A_5"]').change(function() {
if( 2 || 3 || 4 || 5 == $(this).val()) {
$('#myDiv2').show();
} else {
$('#myDiv2').hide();
$('#Q15').val( '' );
}
});