0
Personal as 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 receive only whole numbers
is Mask in Javascript works only that it deletes values smaller than it as 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 clears the field
You don’t have it in Web Forms, you can use a
RegularExpressionValidator
, a functionJavascript
, or even replace with ainput
normal and setartype=number
– Ricardo Pontual
I created a mask only that it does not accept the minor digits that the mask, I just updated the post, you can help me with this?
– Leonardo Macedo
For me there is no error in your code, are you sure you are selecting the right field? Look at this example I made using the same mask you put in the code and it worked: https://jsfiddle.net/b3mtxceq/1/
– Ricardo Pontual
yes is the right field this, the method you did is by input, I already tried to make the change but the error in the system is like Asp:Textbox and the mask in js is the same as I put in the post
– Leonardo Macedo