jQuery - Widget ProgressBar
Advertisements
Description
The Widget Progress Bar function can be used with widgets in JqueryUI. A simple progress bar shows information about progress. A simple progress bar is as shown below.
Syntax
Here is the simple syntax to use progress bar −
$( "#progressbar" ).progressbar({ value: 37 });
Example
Following is a simple example showing the usage of progress bar −
Live Demo<!doctype html> <html lang = "en"> <head> <meta charset = "utf-8"> <title>jQuery UI Progressbar - Default functionality</title> <link rel = "stylesheet" href = "//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> <script type = "text/javascript" src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"> </script> <script type = "text/javascript" src = "https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/jquery-ui.min.js"> </script> <script> $(function() { $( "#progressbar" ).progressbar({ value: 37 }); }); </script> </head> <body> <div id = "progressbar"></div> </body> </html>
This will produce following result −
jquery-widgets.htm
Advertisements