I need to check some condition and based on that run a jQuery function on keypress for validate key.
I have 3 types for validate.
- text
- Integer, decimal or double
- formula and I want get number and some formula sign for example gets only (*-/+) and number.
How can I do it ? Any help ?
@for(int i = 0 ; i < Model.ParamStructList.Count ; i++)
{
@Html.TextBox("ParamStructList["+i+"].value",Model.ParamItemValueList[i].Value,new{onkeypress=""})
}