Hi,
only Numeric value are enter in Textbox in Javascript or Jquery.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jitendra PatelPosted Sep 21, 2011, 12:51 PM
I got answer but it is not proper because there are multipal .(dot) are insert in textbox.
<script language="javascript">
function FracOnly(i) {if
(i.value.length>0) {{i.value = i.value.replace(/[^\d ?\.\d{2})?$/]+/g,
}
}
''); }script><
asp:TextBox ID="txtRegistrationFee" runat="server" CssClass="tbfield" onChange="FracOnly(this);" onkeypress="FracOnly(this);" onkeyup="FracOnly(this);">asp:TextBox>