title: jquery validate errorplacement with a specific place
body: <p>i want to validate my form with jquery validate but i want to put my error label to a specific place. an example below show error label put in the <code>&lt;span class="error_label"&gt;&lt;/span&gt;</code>. my question is how can i make errorplacement with a specific place, with an example below, please help me..thanks?</p>
  
  <pre><code>&lt;script&gt;
  $(document).ready(function (){
  $("#fm_regis").validate({
      rules :{
          name: {
              required: true,
          },
      },
      errorPlacement: function(error, element) {      
          //$(element).next('span .error_label :first').html(error);
          //$('.error_label').html(error);
          //$('.error_label').html(error);
          $(element).closest('.error_label').html(error);
      },
      messages: {
          name: {
              required: "Please input a username",
          },
      }
  });
  });
  &lt;/script&gt;
  
      &lt;form name="fm_regis" id="fm_regis"&gt;
      &lt;table&gt;   
        &lt;tr&gt;
           &lt;td width="100"&gt;Nama&lt;/td&gt;
           &lt;td&gt;:&lt;/td&gt;
           &lt;td&gt;&lt;input type="text" name="name" id="name" size="30"/&gt;&lt;/td&gt;
        &lt;/tr&gt; 
        &lt;tr&gt;
           &lt;td width="100"&gt;&lt;/td&gt;
           &lt;td&gt;&lt;/td&gt;
           &lt;td&gt;&lt;span class="error_label"&gt;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
     &lt;/table&gt;
       &lt;input type="submit" value="Register"/&gt;
     &lt;/form&gt;
  </code></pre>