title: How to use jquery validation plugin in rails
body: <p>How to use <strong>jquery validation plugin</strong> for the <strong>rails form</strong> given below.</p>
  
  <p>I want complete steps about how to make the it for different fields.</p>
  
  <pre><code>&lt;%= form_for(@user) do |f| %&gt;
   &lt;div class="field"&gt;
    &lt;%= f.label :firstname %&gt;&lt;br /&gt;
    &lt;%= f.text_field :firstname %&gt;
  &lt;/div&gt;
  &lt;div class="field"&gt;
    &lt;%= f.label :lastname %&gt;&lt;br /&gt;
   &lt;%= f.text_field :lastname %&gt;
  &lt;/div&gt;
  &lt;div class="field"&gt;
    &lt;%= f.label :mobile %&gt;&lt;br /&gt;
    &lt;%= f.text_field :mobile %&gt;
  &lt;/div&gt;
  &lt;div class="field"&gt;
    &lt;%= f.label :email %&gt;&lt;br /&gt;
    &lt;%= f.text_field :email %&gt;
  &lt;/div&gt;
  &lt;div class="actions"&gt;
    &lt;%= f.submit %&gt;
  &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>plz help me...</p>