In Wordpress, the add-new-user page, for example, has some jQuery validation to make sure that the username isn't empty. It provides with visual feedback like the following:

enter image description here

I'm working on a custom plugin's page and I want to implement this exact same validation for required inputs. I don't want to write my own jQuery validation since WordPress already has it built in. I tried to apply the classes that I saw on the add-new-user page, like form.validate and tr.form-field.form-required with no success. I'm clearly missing something(like a dependency) and I'd like to know if anyone has previous experience with this issue.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.