title: Missing { after argument list
body: <p>This is missing a semi colon or curly bracket or something and I can't find out where or how.</p>
  
  <p>Any suggestions on how to debug this sort of issue would help. I added one on the line firebug told me and it still didn't work nor make sense. </p>
  
  <pre><code>$(document).ready(function () {
              $('#go').click(function () {
                  $.ajax({
                      type: 'POST',
                      data: $('#newsletter').serialize(),
                      url: $('#newsletter').attr('action'),
                      success: function()
                      {
                      $('#thankYou').show(1000,setTimeout(
  
                      function(){
                      $('#thankYou').hide()
                      })
  
                      ,3000);
  
  
                      };
                  });
                   return false;
              });
  
          });
  </code></pre>
  
  <p>it is still showing a syntax error with this</p>
  
  <pre><code>function()
                      {
                      $('#thankYou').show(1000,setTimeout(
  
                      function(){
                      $('#thankYou').hide()
                      })
  
                      ,3000);
  
  
                      }
  </code></pre>