I need to write a validation function with jQuery to validate a phone number against an incremental (for example 12345 or 56789) or repeating (for example 11111 or 22222) input but am out of ideas on how to do that. Could anybody give me an idea on how this can be done?
Thank you beforehand.
You can try this to validate either repeating (i.e. 55555) or incremental (i.e. 123456) numbers
DEMO.