Is there a faster way of writing this?
if ($(\'#id\').val()==7 || $(\'#id\').val()==8 || $(\'#id\').val()==9){ console.log(\'value of #id is 7, 8, or 9!\
It's not really much simpler, unless the list of values is really long:
if ([7, 8, 9].indexOf(parseInt($('#id').val(), 10)) != -1)