How to highlight the Error textboxes?

Posted by Laghaterohan under jQuery on 8/30/2010 | Points: 10 | Views : 3811 | Status : [Member] | Replies : 2
Hello,

Can any one please help me to know how can we highlight the required fields using JQuery? For Ex. I have a form with several fields on it. In that there are 2 required fields. Now, if the user leaves these fields empty those textboxes should be highlighted in Red( only their border). I dont want any error message to be displayed. How to achieve this?

I have d/w JQuery plugin for validation viz..
jquery.validate.pack.js
jquery.validate.min.js
jquery.validate.js
additional-method.js

Please help me to solve my problem...

Thanks in advance,
Rohan

Best Regards,
Rohan Laghate



Responses

Posted by: Shankul2784 on: 8/30/2010 [Member] Bronze | Points: 25

Up
0
Down
Hi,

better way you can easily write the javascript & then change the color also no need of validations.

Thanks & Regards,

Shailesh

Laghaterohan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Laghaterohan on: 8/30/2010 [Member] Starter | Points: 25

Up
0
Down
Well, i want to highlight the border of the textboxes in case of any errors, then may it be Req. field validations or some other errors...i just dont want to show * and a message..instead highlight the Error part/textbox...how to achieve this?

Best Regards,
Rohan Laghate

Laghaterohan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response