How to return validate key with some Condition In Razor by jQuery?
<p>I need to check some condition and based on that run a jQuery function on keypress for validate key.</p>

<p>I have 3 types for validate.</p>

<ul>
<li>text</li>
<li>Integer, decimal or double</li>
<li>formula and I want get number and some formula sign for example gets only (*-/+) and number.</li>
</ul>

<p>How can I do it ? Any help ?</p>

<pre><code>@for(int i = 0 ; i &lt; Model.ParamStructList.Count ; i++)
{
   @Html.TextBox("ParamStructList["+i+"].value",Model.ParamItemValueList[i].Value,new{onkeypress=""})
}
</code></pre>