title: Remote attribute for validation in MVC not working
body: <p>Here is what my code look like rendered as HTML</p>
  
  <pre><code>&lt;input data-val="true" data-val-remote="User name already exists. Please enter a different user name." data-val-remote-additionalfields="*.Name" data-val-remote-url="/OrchardLocal/Genealex.CRM.Core/Home/doesNameExist" data-val-required="Enter Name" id="typeName" name="TypeType.Name" type="text" value=""&gt;
  </code></pre>
  
  <p>Here is the property in my model</p>
  
  <pre><code>[Remote("doesNameExist", "Home", ErrorMessage = "User name already exists. Please enter a different user name.")]
  public string Name { get; set; }
  </code></pre>
  
  <p>The action in my controller:</p>
  
  <pre><code>[HttpPost]
  public JsonResult doesNameExist(string Name)
  {
      var user = _contactBll.DoesTypeExist(Name);
      if (user)
      {
          return Json("Username is already exist", JsonRequestBehavior.AllowGet);
      }
  
      return Json(true, JsonRequestBehavior.AllowGet);
  }
  </code></pre>
  
  <p>And in my View I have :</p>
  
  <pre><code>@Html.TextBoxFor(model =&gt; model.TypeType.Name, new { id = "typeName" })
  </code></pre>
  
  <p>I have also included scripts like this:</p>
  
  <pre><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"&gt;&lt;/script&gt;
  &lt;link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.0/css/select2.css" rel="stylesheet" /&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.13.1/jquery.validate.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="https://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.validate.unobtrusive.min.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.0/js/select2.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Yet, when I leave the focus from the textbox, after I have written something in the input field the validation is not fired.</p>
  
  <p>What am I doing wrong?</p>