title: jQuery error: missing ( before formal parameters
body: <p>I have this jQuery script:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
    $(document).ready(function{
      $("#btnLogon").bind("click", function(){
        $("#btnLogon").after('&lt;span class="error"&gt;Please wait...&lt;/span&gt;');
      });
    });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>In Firebug I get the error message</p>
  
  <pre><code>missing ( before formal parameters
  </code></pre>
  
  <p>What am I doing wrong here?</p>