Auto-format structured data (phone, date) using jQuery plugin (or failing that vanilla JavaScript)

Question!

I like jQuery and I was wondering if anyone have used a good plugin or (non-jQuery) JavaScript library that allows for auto-formatting of structured fields like phone numbers or dates. I know of the jquery-ui-datapicker plugin, and not what I am looking for here. You may type in a phone number as 123 which then becomes (123), additional numbers will be formatted as (123) 456 7890 Ext. 123456. If you press delete the auto-formatting stuff disappears automatically, and repositioning of the cursor, say, after (123) and pressing delete will remove the 3 and make the rest (124) 567 8901 Ext. 23456. The ones that I have played with appears unreliable.



Answers

Does the Masked Input plugin do what you need or that one you have already found to be unreliable?

By : dgvid


This video can help you solving your question :)
By: admin