Font Color class using BootstrapThis text is class='text-muted' This text is class='text-primary' This text is class='text-success' This text is class='text-info' This text is class='text-warning' This text is class='text-danger'
Different size with colour. by using <h3>
This text is class='text-danger'Change to your own colour fontAbove classes with six different colours are available by default. We can create our own class with our selected colour and add use them. Let us create own style property like this.
Output is here
This text is class='my_text-class' Where to keep this style codeYou can define your own style property page and inside this page you can keep your all common style code for your site.Reading adding and removing text classesBased on the requirement ( or condition ) we can change the text class associated with the DIV or P tag or H tag.Here d1 is the id of our alert message box. Reading the present associated class
Removing one class and adding another.
Removing present class and adding a new class.
Here is a DEMO script to apply all text classes by using different buttons.
![]() |
Most Popular JQuery Scripts | |
1 | Two dependant list boxes |
2 | Calendar with Date Selection |
3 | Data change by Slider |
4 | Show & Hide element |