Member
84 Points
1516 Posts
Nov 29, 2016 05:05 PM|jeffcarter|LINK
Hi Raju,
In the view, I only have this:
<div class="inputs"> @Html.LabelFor(model => model.Email, new { }, ":") @Html.EditorFor(model => model.Email) @Html.RequiredHint() @Html.ValidationMessageFor(model => model.Email) </div>
In your example, you are using this which I don't have in the view page so way to add onblur in html for me.
<input class="text-box single-line" data-val="true" data-val-email="Wrong email" data-val-required="Email is required." id="Email" name="Email" type="email" onblur="validateDomain(this)">
Member
84 Points
1516 Posts
Re: Any javascript validation to restrict specific email domain names from entering?
Nov 29, 2016 05:05 PM|jeffcarter|LINK
Hi Raju,
In the view, I only have this:
In your example, you are using this which I don't have in the view page so way to add onblur in html for me.