Create a Bootstrap Progress Bar with Different Styles

Ankith Reddy
Updated on 15-Jun-2020 07:38:35

688 Views

Follow the below given steps to create a progress bar with different styles −Add a with a class of .progress.Next, inside the above , add an empty with a class of .progress-bar and class progress-bar-* where * could be success, info, warning, danger.Add a style attribute with the width expressed as a percentage. Say, for example, style = "60%"; indicates that the progress bar was at 60%.The progress bars created below are for showing positive action and key information −ExampleLive Demo           Bootstrap Example                                 Progress Bars                             90% Complete (Sucess)                                             30% Complete (info)                    

Create Red Alert Box for Dangerous Actions in Bootstrap

Smita Kapse
Updated on 15-Jun-2020 07:36:49

842 Views

Use the .alert-danger class in Bootstrap to create a red color alert box indicating dangerous action.You can try to run the following code to implement .alert-danger class −ExampleLive Demo        Bootstrap Example                                                       Danger!             Add dangerous action here...                    

jQuery Events: load, ready, unload

Amit D
Updated on 15-Jun-2020 07:36:05

1K+ Views

jQuery load() methodThe load() method is used to attach event handler to load event.ExampleYou can try to run the following code to learn how to work with jQuery load() method.Note:  The method deprecated in jQuery 1.8. It got finally removed in jQuery 3.0. To run the following code, add jQuery version lesser than 1.8, Live Demo $(document).ready(function(){     $("img").load(function(){         alert("This is an image.");     }); }); This image will load only in jQuery version lesser than 1.8 jQuery ready() methodEasily specify what ... Read More

Center Tabs in Bootstrap

Chandu yadav
Updated on 15-Jun-2020 07:35:21

946 Views

Use the .nav-justified class in Bootstrap to center tabs in Bootstrap.You can try to run the following code to center tabs −ExampleLive Demo           Bootstrap Example                                          Web Development          The following are the web dev technologies:                       HTML5             jQuery             JavaScript             Ajax             ES6                    

Vertically Stack Pills with Bootstrap

Smita Kapse
Updated on 15-Jun-2020 07:34:10

223 Views

Use the .nav-stacked class in Bootstrap to vertically stack pills:You can try to run the following code to implement the .nav-stacked class −ExampleLive Demo           Bootstrap Example                                          Database          The following are the database technologies:                       DB2             MySQL             SQL             CouchDB                    

Arrays Data Structure in JavaScript

Samual Sam
Updated on 15-Jun-2020 07:32:42

515 Views

The array is a container which can hold a fixed number of items and these items should be of the same type. It stores a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type.Why do we need arrays?Let's say you want to record the average temperatures of all days of the week. You can record them as follows −let avgTempMon = 35; let avgTempTue = 33; let avgTempWed = 31; ... Read More

SAP UI5 Framework Comparison with jQuery, Backbone, Angular and More

karthikeya Boyini
Updated on 15-Jun-2020 07:32:18

236 Views

The SAPUI5 framework is the original version of the SAP toolkit which was released initially. This version of the toolkit is a proprietary version. Later SAP released an Open source version of it named OpenUI5. Functionally it is almost equivalent in terms of basic operations negating few features but overall sufficient enough as a UI framework.This UI5 framework (applies to both SAPUI5 and OpenUI5) is capable of dispensing all major tasks expected from a full-fledged UI framework. It supports following features:Model View Controller architectureRouting engineModules with the help of module loadersFull data binding either in XML, JSON or using web servicesCulture ... Read More

Create Arrays in JavaScript

Anjana
Updated on 15-Jun-2020 07:32:09

456 Views

To create an array in JavaScript, simply assign values −var animals = ["Dog", "Cat", "Tiger"];You can also use the new keyword to create arrays in JavaScript −var animals = new Array("Dog", "Cat", "Tiger");The Array parameter is a list of strings or integers. When you specify a single numeric parameter with the Array constructor, you specify the initial length of the array. The maximum length allowed for an array is 4, 294, 967, 295.ExampleLet’s see an example to create arrays in JavaScriptLive Demo           JavaScript Arrays                   ... Read More

Creating Arrays Using JavaScript

Sai Subramanyam
Updated on 15-Jun-2020 07:31:06

226 Views

There are many ways to create an Array in JavaScript. We'll look at how to create an empty array first using 2 methods.let myArr = []; let myArr = new Array();Both of the above lines create an empty array. The JavaScript community always prefers the first method as it is easier to read, type and performs the same task as the second one. You can also populate the array when you're creating it using either of the following 2 notations −let myArr = ["Mon", "Tue", "Wed", "Thu", "Fri"]; let myArr = new Array("Mon", "Tue", "Wed", "Thu", "Fri");You can print it ... Read More

Style the Bootstrap Modal

Ankith Reddy
Updated on 15-Jun-2020 07:27:00

1K+ Views

Use the .modal-body class in Bootstrap to style the modal.You can try to run the following code to style modal −/p>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                                                                  

Advertisements