title: errorplacement not allowing jquery validate to work
body: <p>This is my first time using javascript in a website. I have very low understanding of the language and rely very much on tutorials and reading through other people's questions/solutions.</p>
  
  <p>I have a HTML form that I formatted using a table format. I happen to have some radio buttons in the form too and what happens is once I include <code>errorPlacement</code> in the javascript code, validation for the form doesn't happen. I need for the error message not to disrupt the text of my radio buttons, hopefully appearing on top before the options or after.</p>
  
  <p>If I take out the <code>errorPlacement</code> codes, validation ('this field is required' messages appear at the default location) works as per normal.</p>
  
  <p>Please have a look at my code and let me know if I'm missing anything. I have a feeling it's something simple like a comma or bracket and I have tried a few workarounds but nothing seemed to work.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function(){
          $("#quoteform").validate({
              errorPlacement: function(error, element) {
                   error.insertBefore(element);   
               },          
          }),
      })                        
  &lt;/script&gt;
  </code></pre>