I am using autoNumeric plugin with the latest version of jQuery.
I have a mobile number textbox and I need it to be able to accept a 0 as the first number. How would I do this? I currently have the following:
$('.phone').autoNumeric({ vMin: '0', vMax: '99999999999999999999' });
..but when I type in a 0 and then another digit then the 0 is oberwritten by this digit. Mobile numbers here can start with a 0, for example: 0987656512. I just need autoNumber to prevent anything else from being typed in except numbers. How would I do this?
I decided to use the
jQuery masked input plugin. I handles numeric only values well. It allows me to enter a value like 0123.