Have you tried deleting through the dash, then added more numbers? Example, enter '123-4' then delete the '4' and the '-' then add more numbers. I'm betting that it will read as '1234....'. If you don't like that, change the textBoxAddDash function to my
earlier post and see if that works better. In my last post I was just lazy and left the function as it was in your previous post, except for removing the line that replaces non-numeric characters.
markymark550
Member
707 Points
142 Posts
Re: Onkeypress issue with javascript
Aug 03, 2012 08:32 PM|LINK
Have you tried deleting through the dash, then added more numbers? Example, enter '123-4' then delete the '4' and the '-' then add more numbers. I'm betting that it will read as '1234....'. If you don't like that, change the textBoxAddDash function to my earlier post and see if that works better. In my last post I was just lazy and left the function as it was in your previous post, except for removing the line that replaces non-numeric characters.