Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Apr 30, 2012 02:14 PM|LINK
You can set some flag.When it goes inside validation function and find that textbox doesnot contain valid data then set that flag to false.
Now use if condition to see whether that flag is false if yes then chage its css properties in code by using Add Attributes method
Let me know whether it works