title: Jquery slideup and down
body: <p>I was wondering if there was a way to condense this code better so that I don't have to code every possible scenario. Any help is appreciated. </p>
  
  <pre><code>  $('select.contactselect').change(function(){
     var selectVal = $(this).val();
     if(selectVal == 'press'){
      $('.support').slideUp('fast');
      $('.general').slideUp('fast');
      $('.press').delay(100).slideDown('fast', function() {
          // Animation complete.
      });
    }else if (selectVal == 'general'){
      $('.press').slideUp('fast');
      $('.support').slideUp('fast');
      $('.general').delay(100).slideDown('fast', function() {
        // Animation complete.
      });
    }else if (selectVal == 'support'){
      $('.press').slideUp('fast');
      $('.general').slideUp('fast');
      $('.support').delay(100).slideDown('fast', function() {
        // Animation complete.
      });
    }
    });
  </code></pre>