title: How do I client validate a razor view with input tags
body: <p>I am new to <code>MVC</code>. Is there any way to client validate a razor view having general inputs like </p>
  
  <pre><code>&lt;input type-"text" id="txtFirstName" /&gt;
  </code></pre>
  
  <p>I have seen there are some ways to do it using DataAnnotation attribute in model and <code>@Html.Textbox</code> or <code>@Html.TextBoxFor</code>. But could not find something which can validate a pure HTML form element. I am using <code>Html.BeginForm</code> to render my form on page. </p>