Hi,
only Numeric value are enter in Textbox in Javascript or Jquery.
Numeric and Decimal Value check?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend3days leftRegister
Jitendra Patel138 reputationPosted Sep 21, 2011, 8:51 AM EDT
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>