Personally I define a field that is in text in webforms for numeric, as an example.
<asp:TextBox ID="feb" runat="server" BorderColor="#999999" BorderStyle="Solid" MaxLength="4" TabIndex="93" Width="90px" ></asp:TextBox>
I need this field to only receive integers
This mask in JavaScript works only as it erases smaller values as an example
jQuery("#ctl00_ctl00_ContentPrinc_ContentPlaceHolder1_feb").mask("9999");
If I type 45 in the field and the mask is "9999" it does not accept and clean the field