I have a textbox that insert only number and add comma separator in it.
I use this code in view
@Html.TextBoxFor(m => m.TurnRatingCost, null, new { @class = "form-control",onkeyup= "javascript:this.value=Comma(this.value);", onkeydown = "return ValidateNumber(event);" })
it is ok, but i want to convert this to custom TextboxFor with htmlHelper .