views:

337

answers:

2

Hi,

I have been using this $("#SomeId").mask("99"); jquery mask for text box where I want to enter only two digit numbers, but i do not know which mask to put in order to enable entering only one digit number and two digit. From 0-99

with mask above I cannot enter one digit number, the text box become blank when it lose focus.

Can anyone help thanks a lot.

+1  A: 

{mask: 9, 'maxLength': 2} should work

Edit: you have not specified what mask have you used; my answer is related to meioMask plugin.

Edit 2: for maskedinput 1.2.2:

$("#SomeId").mask("9?9");
Alex Pavlov
I am using jquery.maskedinput-1.2.2 Thanks a lot
A: 

I am using jquery.maskedinput-1.2.2 Thanks a lot

Can I use them both on the same page, I have just tried and it fails?

SonOfOmer