martok
martok

Reputation: 479

jQuery-Validate / css - multiple 'classes'?

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">

Upvotes: 0

Views: 595

Answers (1)

DanielB
DanielB

Reputation: 20240

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">

Upvotes: 2

Related Questions