title: How to perform client side validation using jquery in rails 3 forms
body: <p>I want to perform <strong>client side</strong> validation 
  <strong>using jquery in rails 3</strong> forms </p>
  
  <p>for the following form</p>
  
  <p>the fields may be email,mobile number,etc</p>
  
  <pre><code>&lt;%= form_for(@user) do |f| %&gt;
  &lt;div class="field"&gt;
    &lt;%= f.label :Name %&gt;&lt;br /&gt;
    &lt;%= f.text_field :name %&gt;
  &lt;/div&gt;
  
  &lt;div class="field"&gt;
    &lt;%= f.label :Contact_number %&gt;&lt;br /&gt;
    &lt;%= f.text_field :contact_number %&gt;
  &lt;/div&gt;
  &lt;div class="field"&gt;
    &lt;%= f.label :Licence_type %&gt;&lt;br /&gt;
    &lt;%= f.text_field :licence_type %&gt;
  &lt;/div&gt;
  
  &lt;div class="actions"&gt;
   &lt;%= f.submit %&gt;
  &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>please help me for the above validations</p>
  
  <p>or any other client-side validation you may suggest for me</p>