EDITABLE CODE:
LiveDemo: jQuery UI Progress Bar : Creating a Progress Bar
Note: For a progress bar to be displayed correctly, the div element should be empty.