I have a question regarding form validation using Jquery. The form elements in my code have the class attribute set as "required".
Now, I want to style these input fields specifically without affecting all input elements. I have defined a CSS class like this:
- Instead of a general CSS declaration for all input elements, I am using the following CSS rules:
input.form { color: #000; background: #fff; border: 2px solid #E1E1E1; font-size: 16pt; width:150px; }
I would like to apply this styling by including the class attribute in the HTML like below:
However, this approach does not work due to having two class attributes present. Can anyone advise on how to handle this situation? Thank you.