Using the jQuery Validation plugin to validate forms, how would you confirm that a string is exactly X characters long?
The easiest way is to use the existing validation methods via data attributes, then just set your own validation message for clarity.