[CSHTML]
@using (Html.BeginForm())
{
@Html.EJ().PercentageTextbox("percent").Value("100").DecimalPlaces(2).ClientSideEvents(evt=>evt.FocusOut("onfocusout"))
<br />
@Html.EJ().Button("submit").Type(ButtonType.Submit).Size(ButtonSize.Medium)
@Html.Hidden("preval")
}
[SCRIPT]
function onfocusout () {
$("#preval").val(this._preVal)
}
[CONTROLLER]
[HttpPost]
public ActionResult TextBoxesFeatures(string preval)
{
return View();
} |
Massive problems in EDGE browser. When first clicked inside the input in the JS sample provided, I cannot use the keyboard to navigate through the characters until I click again somewhere in the input usually on the number. I tried initially clicking at the decimal point instead of either side of the number, but it all seems broken until I click the second time.