Easy Tutorial
❮ Api Addclass Api Toggleclass ❯

jQuery UI API - Progressbar Widget

Category

Widgets

Usage

Description: Displays a determinate or indeterminate progress status.

Version Added: 1.6

The progressbar is designed to display the current completion percentage of a progress. It is flexible in size through CSS and defaults to scaling to fit the parent container.

A determinate progressbar should only be used in situations where the system can accurately update the current status. A determinate progressbar does not fill from left to right, then loop back to empty—if the actual status cannot be calculated, an indeterminate progressbar should be used to provide user feedback.

Theming

The Progressbar Widget uses the jQuery UI CSS Framework to define its visual style and appearance. For specific styling of the progressbar, you can use the following CSS class names:

Dependencies

Additional Notes

Example

A simple jQuery UI indeterminate progressbar.

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Progressbar Widget Demo</title>
  <link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
  <script src="//code.jquery.com/jquery-1.10.2.js"></script>
  <script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
</head>
<body>

<div id="progressbar"></div>

<script>
$( "#progressbar" ).progressbar({
  value: false
});
</script>

</body>
</html>

View Demo

❮ Api Addclass Api Toggleclass ❯