I had to add [Bind(Prefix = "account.Name")]
public ActionResult AdvertiserNameAvailable([Bind(Prefix = "account.Name")] String name) { if(name == "Q") { return Json(false, JsonRequestBehavior.AllowGet); } else { return Json(true, JsonRequestBehavior.AllowGet); } }
To find out your prefix, right-click and check the item at the input you are trying to check. Find the name attribute:
<input ... id="account_Name" name="account.Name" type="text" value="">
source share