0

I'm using a class for input fields to control their style. Now I want to use the jQuery validate plugin which needs the class to be 'required'. Is it possible to chain multiple classes? Here's what isn't working:

<input type=text id=Example class="requred textInput">
3
  • use quotes for id and type also. Commented Jun 28, 2011 at 9:12
  • 1
    missing an i in the required class name.. Commented Jun 28, 2011 at 9:14
  • 1
    just tested it and it does work if you correct the spelling. Commented Jun 28, 2011 at 9:17

1 Answer 1

2

For sure this is possible, but you have a spelling in required, and may be that's why it does not work.

<input type="text" id="Example" class="required textInput">
Sign up to request clarification or add additional context in comments.

1 Comment

Doh! too early in the morning for me. Thanks DanielB

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.