title: Uncaught SyntaxError: missing ) after argument list....but it's not missing
body: <p>Here is the code I'm having a problem with:</p>
  
  <pre><code>&lt;script&gt;
  $( "li#1" ).hover(
    function() {
      $( this ).append( $( "&lt;span&gt;Answer 1&lt;/span&gt;" ) );
          } function() {    
      $( this ).find( "span:last" ).remove();
      }
  );
  $( "li#2" ).hover(
    function() {
      $( this ).append( $( "&lt;span&gt;Answer 2&lt;/span&gt;" ) );
          } function() {
      $( this ).find( "span:last" ).remove();
      }
  );
  &lt;/script&gt;
  </code></pre>
  
  <p>There is no problem with li#2, even though li#1 has identical syntax but is getting "Uncaught SyntaxError: missing ) after argument list" in li#1. Where am I missing the parenthesis? NetBeans debugger tells me it's in the line } function() { which is identical for both.</p>