Bootstrap Error Message Color
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About bootstrap form error message Us Learn more about Stack Overflow the company Business Learn more about hiring
Bootstrap Error Message Popup
developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the bootstrap error message example Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Mark error in form using Bootstrap bootstrap error message div up vote 82 down vote favorite 17 I've started using Bootstrap in order to achieve a nice page design without resorting to GWT (the backend is made in java) For my login screen I copied this example. Now I want to mark an error, for instance, that the username was left empty. So I was wondering what is the procedure in the Bootstrap framework for this. Or
Bootstrap Error Message Class
maybe if there are examples showing the form with error. I'm not sure if the idea is to show the error message inside the input element with a red color, or to show it below the input element, or maybe with a popup? twitter-bootstrap share|improve this question asked Jan 16 '13 at 15:10 Luciano 4,94921846 1 Checkout jquery validate. it is fairly simple. bassistance.de/jquery-plugins/jquery-plugin-validation –Scott Simpson Jan 16 '13 at 15:15 add a comment| 4 Answers 4 active oldest votes up vote 88 down vote accepted Here you go http://jsfiddle.net/jonschlinkert/pngWh/12/ See how the .error, .success, .warning and .info classes are appended to the .control-group? This is standard Bootstrap markup and styling. Just follow that and you're in good shape. Of course you can go beyond with your own styles to add a popup or "inline flash" if you prefer, but if you follow Bootstrap convention and hang those validation classes on the .control-group it will stay consistent and easy to manage (at least since you'll continue to have the benefit of Bootstrap docs and examples)