input mask for numbers or empty

J

Jesper F

I need an control over field that should accept 2 digit
numbers but also en empty field. I use a validation
function such as <99 and an inputmask as either 99 or ##
and a validation message.
This works fine if a number is entered.
But if a numbered is entered and the user then regrets and
clears the field with backspace one isn't allowed to leave
the field and is presented with the val message.
How can I make a inputmask/validation function that'll
allow numbers but also and empty field?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top