Is it possible to set a color of a specific input field using jquery?
I would like to set a border to red if it fails some validations that I wrote and turn it back to black if it is fine.
Any way to do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
why do people always want to write there own code what do they think they are programmers ;^ ) you should consider validation plugin
I would do something like
that was you can add put it all in classes and swap as needed