jQuery Error - Option/Value selected from Drop-Down List
<p>I have code which has a drop down list.  And when a certain option of the drop-down list is selected, its assigned DIV is shown with the other div's hidden.  If another option is selected, then the existing DIV is hidden and its assigned div is shown.</p>

<p>But, the div's being shown/hidden isn't working properly.</p>

<p>Firebug reports the following (arrow points to the '$'):</p>

<pre><code>missing ( before switch expression
[Break On This Error]     

switch $(this).val(){
</code></pre>

<p>Below is the jQuery code:</p>

<pre><code>$('#ddlOptions').change(function(){
    $('div.Results').hide();
    switch $(this).val(){
      case '1': $('#divResults1').show();break; 
      case '2': $('#divResults2').show();break;
      case '3': $('#divResults3').show();break;
    }
  });
</code></pre>
