I have previously used Telerik's RadNumericTextBox for giving input of decimals like below:
<telerik:RadNumericTextBox ID="txtNewAmt" runat="server" EnableViewState="false"
Width="100px" CssClass="input" Type="Number" EnabledStyle-HorizontalAlign="Right"
PlacesBeforeDecimal="11" NumberFormat-DecimalDigits="2">
<ClientEvents OnKeyPress="validateRegExMaskNumeric" />
</telerik:RadNumericTextBox>
Here, in the input,
- Only numbers are allowed.
- Numbers will be aligned from right.
- Places before decimal can be 11 or less and after decimal can be 2 or less.
But, i don't want to use Telerik anymore.
How to mask the same thing using Jquery
? Can it be handled using asp:Textbox
?