title: validating form in MVC3 using javascript
body: <p>I just need example for one validation. For remaining I will do. Let's say I have an input of type text:</p>
  
  <pre><code> &lt;p&gt;                          
  &lt;label for="ClientName"&gt;ClientName:&lt;/label&gt; &lt;%= Html.TextBoxFor(model =&gt; model.Name)%&gt;         
   &lt;/p&gt;        
  </code></pre>
  
  <p>Here I want to validate textbox for required field. I want this required field validation function in JavaScript and I want to use this script in the view.</p>