I'm using the jQuery Validate plugin for a registration form and have run into a predicament...
I need the username field to be not only required, but also follow a specific pattern: The first 5 characters MUST be numbers, and the rest and be anything the user wants.
I found this other question which might be along the lines of what I need to do. Is there a way to accomplish this?
If there isn't a way to accomplish this, I think I have a workaround... Have two fields visible (one for 5 numbers & one for the other characters at the end). I could then have a hidden field that appends the two fields' values together and then that's what gets submitted as the username. That way, I can enforce numbers only and a length of 5 for the numbers field. It's dirty, but it may work.
Thanks in advance.