1

I want to use the jQuery validation plugin, but I don't want it to add a class to the actual input box, rather just display the message next to it.

Any ideas how to disable the field highlighting?

1
  • do you mean you don't want to add class required to the field but you want to still show the message Commented May 11, 2011 at 17:45

1 Answer 1

2

if you want to the field to be required without adding class you can add a rule

$("#myinput").rules("add", {
   required: true
});
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.