title: How to check if a <div> is valid with unobtrusive javascript
body: <p>I have a form which loads a div on client side. I have hard coded textbox controls with all validation attributes, similar to what it renders when loaded from server. Inside the div there is submit button, but when I click on submit all validations messages on the form are displayed. I just need only the div elements validation messages to be shown. Telerik Grid control in ajax mode, does similar thing, i.e., appends textboxes with hardcoded validation attributes on client side, but it manages to fire validations only for the grid not entire form. I think I am missing something here.</p>
  
  <pre><code>$('#div').valid() --&gt; doesn't work
  $('#form').valid() --&gt; works
  </code></pre>