title: Unobtrusive validation doesn't work with Ajax.BeginForm
body: <p>I have View with Model1 where I put <code>Ajax.BeginForm()</code> and in this View i have PartialView with Model2 where i put <code>Ajax.BeginForm()</code>. So only in first form working <code>unobtrusive validation</code>. Why only in first form working validation?</p>
  
  <p><strong>first View</strong> </p>
  
  <pre><code>@model Model1
  
  @using (Ajax.BeginForm("Action1","Controller",null,new AjaxOption(){ onSuccess = "alert('=)')"},null)
  {
  
     &lt;intput type="submit" value="Save" /&gt;
  }
  
  
  Model2 model2 = new Model2();
  @Html.EditorFor(m=&gt;model2)
  </code></pre>
  
  <p>**In Model2 view i have. ** </p>
  
  <pre><code>@model Model2 
  @using (Ajax.BeginForm("AddStreet","Controller",new AjaxOption(){onSuccess = "alert('=)'")},option,null)
  {
  
          @Html.LabelFor(m =&gt; Model.Name):
          @Html.TextBoxFor(m =&gt; Model.Name)
          @Html.ValidationMessageFor(m =&gt; Model.Name)
  
         &lt;intput type="submit" value="Save" /&gt;
  }
  </code></pre>
  
  <p><strong>Thanks @Darin Dimitrov for answer.</strong> </p>