Form field format validation
Greetings, everyone!
How do I go about implementing a format validation script for a form field called CPF? I need the user to input a sequence of 11 digits and then automatically change it to a specific format, for example:
The user inputs: 12345678900
On exiting the field, the scripts validates a mask to: 123.456.789-00
Thanks a lot!