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!
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.
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
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
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
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 );
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() );
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.")
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());
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 ));
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP