More fun with Twitter Bootstrap this month on SocialBizUg.org:
Bootstrap Error Styling
In this article, I will show you how to use Bootstrap’s validation states for error styling. As in the previous articles, you will need to follow the Getting Started Part 1 steps so your application has the resources required for Bootstrap.
Now in the other articles we have either directly added a class to an element (divs and tables), or added an attribute to an element (tooltip, for example). However, for our error styling, we only want the error styling to appear when there is an error. There are many ways to handle this and I will demonstrate one way.