Bootstrap Alert Danger Class

Nitya Raut
Updated on 15-Jun-2020 07:07:08

398 Views

The alert-danger class in Bootstrap is used to set danger action.You can try to run the following code to implement the alert-danger class in Bootstrap −ExampleLive Demo           Bootstrap Example                                 This is danger action!    

Bootstrap Collapsible

George John
Updated on 15-Jun-2020 07:05:55

268 Views

The collapsible in class in Bootstrap is used to display the collapsible content.You can try to run the following code to implement the collapsible in class −ExampleLive Demo           Bootstrap Example                                          Quiz          Click below to toggle the button content.          More Quizzes                       We have quizzes on Java, PHP, Ruby, Quantitative Aptitude, ASP.net, etc.                    

Define the Style for the Body of the Modal with Bootstrap

Nancy Den
Updated on 15-Jun-2020 07:04:51

270 Views

Use the .modal class to define the style for the body of the modal.You can try to run the following code to implement the .modal class −ExampleLive Demo           Bootstrap Example                                          Website Information          Info                                                                              ×                      Warning                                                          If JavaScript isn't enabled in your web browser, then you may not be able to see this information correcty.                                                          Close                                                                  

Use Bootstrap Tab Plugins

Chandu yadav
Updated on 15-Jun-2020 07:03:28

207 Views

By combining a few data attributes, you can easily create a tabbed interface. With this plug-in you can transition through panes of local content in tabs or pills, even via drop down menus.You can try to run the following code to implement tab plugins −ExampleLive Demo           Bootstrap Example                                                                      Home             ... Read More

Use Bootstrap Tooltip Plugins

Nancy Den
Updated on 15-Jun-2020 07:02:18

168 Views

Tooltips are useful when you need to describe a link. The plugin was inspired by jQuery.tipsy plugin written by Jason Frame. Tooltips have since been updated to work without images, animate with a CSS animation, and data-attributes for local title storage.The tooltip plugin generates content and markup on demand, and by default places tooltips after their trigger element.You can try to run the following code to implement tooltip plugins in Bootstrap −ExampleLive Demo           Bootstrap Example                                 ... Read More

Get First Index of Occurrence of Specified Value in String in JavaScript

Manikanth Mani
Updated on 15-Jun-2020 06:59:06

1K+ Views

To get the first index of an occurrence of the specified value in a string, use the JavaScript indexOf() method.ExampleYou can try to run the following code to get the first index −Live Demo           JavaScript String indexOf() Method                        var str = new String( "Learning is fun! Learning is sharing!" );          var index = str.indexOf( "Learning" );          document.write("First index of string Learning :" + index );          

Convert Boolean Value to String in JavaScript

Alankritha Ammu
Updated on 15-Jun-2020 06:58:38

16K+ Views

To convert a Boolean value to string value in JavaScript, use the toString() method. This method returns a string of either "true" or "false" depending upon the value of the object.ExampleYou can try to run the following code to convert a boolean value to string value −Live Demo           JavaScript toString() Method                        var flag = new Boolean(true);          document.write( "flag.toString is : " + flag.toString() );          

Create Blink Text Using JavaScript

Anjana
Updated on 15-Jun-2020 06:56:11

5K+ Views

To create a blinking text, use the JavaScript blink() method. This method causes a string to blink as if it were in a BLINK tag.Note − HTML tag deprecated and is not expected to work in every browser.ExampleYou can try to run the following code to create a blinking text with the JavaScript blink() method −Live Demo           JavaScript String blink() Method                        var str = new String("Demo Text");          document.write(str.blink());          document.write(" Note: HTML tag deprecated and is not expected to work in every browser.")          

Create Big Font Text Using JavaScript

Akshaya Akki
Updated on 15-Jun-2020 06:55:29

1K+ Views

To create a big font text, use the JavaScript big() method. This method causes a string to be displayed in a big font as if it were in a BIG tag.ExampleYou can try to run the following code to create a big font text −Live Demo           JavaScript String big() Method                        var str = new String("Demo Text");          document.write("Following is bigger text: "+str.big());          

Create a Link from Text Using JavaScript

Manikanth Mani
Updated on 15-Jun-2020 06:54:37

2K+ Views

To create a link, use the JavaScript link() method. This method creates an HTML hypertext link that requests another URL. The following is the syntax:string.link( hrefname )Above, hrefname is any string that specifies the HREF of the tag; it should be a valid URL.ExampleYou can try to run the following code to learn how to work with link() method in JavaScript −Live Demo           JavaScript String link() Method                        var str = new String("Simply Easy Learning");          var URL = "http://www.tutorialspoint.com";          document.write(str.link( URL ));          

Advertisements