Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="../../assets/ico/favicon.png">

    <title>jQuery Form Progress Bar</title>

    <!-- Bootstrap core CSS -->
    <link href="https://netdna.bootstrapcdn.com/bootstrap/3.0.1/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome CSS -->
    <link href="https://netdna.bootstrapcdn.com/font-awesome/4.0.2/css/font-awesome.min.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="../../assets/js/html5shiv.js"></script>
      <script src="../../assets/js/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>

    <div class="container">

      <!-- Main component for a primary marketing message or call to action -->
      <div class="jumbotron">
        <h1>jQuery Progress Bar</h1>
        <p>A simple jQuery progress bar plugin for Bootstrap forms. Please give it a try below.</p>
        <ul>
        	<li>Progress bar only advances when a required (can be HTML5 <code>required</code> attribute or a CSS class of <code>.required</code>) field gains a value</li>
        	<li>User-declarable progress messages. When calling the script, set breakpoints and messages in JS object format: <pre>$('#test_form').showProgress({ message: { '10': 'You\'re off to a great start!', '25': 'You\'re doing great so far!', '50': 'You\'re halfway there!', '75': 'Look at that, you\'re nearly done already!', '100': 'All done! Just click &lt;strong&gt;Submit&lt;/strong&gt; to continue!' } });</pre></li>
        	<li>Progress bar is collapsible</li>
        	<li>Fully Section 508 compliant, with appropriate <code>aria</code> attributes and percentage readout for screen readers</li>
        	<li>Can be positioned at top or bottom of screen with <code>{ position: 'bottom' }</code></li>
        </ul>
        <p>Definitely still a work in progress. Please don't hesitate to submit any bugs! There's a lot of little details left to iron out</p>
      </div>

      <div>
      	<form id="test_form" action="/" method="post" role="form">
	        <fieldset>
	            <legend class="section-title">Your Information</legend>
	            <div class="section row">
	                <fieldset>
	                	<div class="form-group col-md-5">
	                	    <label class="control-label" for="first-name-1">First Name</label>
	                	    <input class="form-control" id="first-name-1" name="pt_first" value="" type="text" maxlength="50" required />
	                	</div>
	                	<div class="form-group col-md-2">
	                	    <label class="control-label" for="initial-1">Middle Initial <span class="label label-info">Optional</span></label>
	                	    <input class="form-control" id="initial-1" name="pt_initial" value="" type="text" maxlength="1" />
	                	</div>
	                	<div class="form-group col-md-5">
	                	    <label class="control-label" for="last-name-1">Last Name</label>
	                	    <input class="form-control" id="last-name-1" name="pt_last" value="" type="text" maxlength="50" required />
	                	</div>
	                </fieldset>
	            </div>
	            <div class="section">
	                <fieldset>
	                	<legend>Address</legend>
	                	<div class="form-group">
	                	    <label class="control-label" for="street-address">Street Address <span class="label label-info">Optional</span></label>
	                	    <input class="form-control" id="street-address" name="pt_address" value="" type="text" maxlength="200" />
	                	</div>
	                	<div class="form-group">
	                	    <label class="control-label" for="city">City <span class="label label-info">Optional</span></label>
	                	    <input class="form-control" id="city" name="pt_city" value="" type="text" maxlength="50" />
	                	</div>
	                	<div class="row">
	                		<div class="form-group col-md-5">
	                		    <label class="control-label" for="state">State/Province</label>
	                		    <select class="form-control" id="state" name="pt_state" required>
	                		        <option value="" selected="selected">Please select a state</option>
	                		        <option value="AL">Alabama</option>
	                		        <option value="AK">Alaska</option>
	                		        <option value="AB">Alberta</option>
	                		        <option value="AS">American Samoa</option>
	                		        <option value="AZ">Arizona</option>
	                		        <option value="AR">Arkansas</option>
	                		        <option value="BC">British Columbia</option>
	                		        <option value="CA">California</option>
	                		        <option value="CO">Colorado</option>
	                		        <option value="CT">Connecticut</option>
	                		        <option value="DE">Delaware</option>
	                		        <option value="DC">District of Columbia</option>
	                		        <option value="FM">Federated States of Micronesia</option>
	                		        <option value="FL">Florida</option>
	                		        <option value="GA">Georgia</option>
	                		        <option value="GU">Guam</option>
	                		        <option value="HI">Hawaii</option>
	                		        <option value="ID">Idaho</option>
	                		        <option value="IL">Illinois</option>
	                		        <option value="IN">Indiana</option>
	                		        <option value="IA">Iowa</option>
	                		        <option value="KS">Kansas</option>
	                		        <option value="KY">Kentucky</option>
	                		        <option value="LA">Louisiana</option>
	                		        <option value="ME">Maine</option>
	                		        <option value="MB">Manitoba</option>
	                		        <option value="MH">Marshall Islands</option>
	                		        <option value="MD">Maryland</option>
	                		        <option value="MA">Massachusetts</option>
	                		        <option value="MI">Michigan</option>
	                		        <option value="MN">Minnesota</option>
	                		        <option value="MS">Mississippi</option>
	                		        <option value="MO">Missouri</option>
	                		        <option value="MT">Montana</option>
	                		        <option value="NE">Nebraska</option>
	                		        <option value="NV">Nevada</option>
	                		        <option value="NB">New Brunswick</option>
	                		        <option value="NH">New Hampshire</option>
	                		        <option value="NJ">New Jersey</option>
	                		        <option value="NM">New Mexico</option>
	                		        <option value="NY">New York</option>
	                		        <option value="NL">Newfoundland and Labrador</option>
	                		        <option value="NC">North Carolina</option>
	                		        <option value="ND">North Dakota</option>
	                		        <option value="MP">Northern Mariana Islands</option>
	                		        <option value="NT">Northwest Territories</option>
	                		        <option value="NS">Nova Scotia</option>
	                		        <option value="NU">Nunavut</option>
	                		        <option value="OH">Ohio</option>
	                		        <option value="OK">Oklahoma</option>
	                		        <option value="ON">Ontario</option>
	                		        <option value="OR">Oregon</option>
	                		        <option value="PW">Palau</option>
	                		        <option value="PA">Pennsylvania</option>
	                		        <option value="PE">Prince Edward Island</option>
	                		        <option value="PR">Puerto Rico</option>
	                		        <option value="QC">Quebec</option>
	                		        <option value="RI">Rhode Island</option>
	                		        <option value="SK">Saskatchewan</option>
	                		        <option value="SC">South Carolina</option>
	                		        <option value="SD">South Dakota</option>
	                		        <option value="TN">Tennessee</option>
	                		        <option value="TX">Texas</option>
	                		        <option value="UT">Utah</option>
	                		        <option value="VT">Vermont</option>
	                		        <option value="VI">Virgin Islands</option>
	                		        <option value="VA">Virginia</option>
	                		        <option value="WA">Washington</option>
	                		        <option value="WV">West Virginia</option>
	                		        <option value="WI">Wisconsin</option>
	                		        <option value="WY">Wyoming</option>
	                		        <option value="YT">Yukon Territory</option>
	                		    </select>
	                		</div>
	                		<div class="form-group col-md-2">
	                		    <label class="control-label" for="zip">Zip/Postal Code</label>
	                		    <input class="form-control" id="zip" name="pt_zip" value="" type="text" maxlength="10" required />
	                		</div>
	                		<div class="form-group col-md-5">
	                		    <label class="control-label" for="country">Country</label>
	                		    <select class="form-control" id="country" name="pt_country" required>
	                		        <option selected="selected" value="">Please select a country</option>
	                		        <option value="United States">United States</option>
	                		        <option value="Afghanistan">Afghanistan</option>
	                		        <option value="Albania">Albania</option>
	                		        <option value="Algeria">Algeria</option>
	                		        <option value="Andorra">Andorra</option>
	                		        <option value="Angola">Angola</option>
	                		        <option value="Anguilla">Anguilla</option>
	                		        <option value="Antarctica">Antarctica</option>
	                		        <option value="Antigua and Barbuda">Antigua and Barbuda</option>
	                		        <option value="Argentina">Argentina</option>
	                		        <option value="Armenia">Armenia</option>
	                		        <option value="Aruba">Aruba</option>
	                		        <option value="Australia">Australia</option>
	                		        <option value="Austria">Austria</option>
	                		        <option value="Azerbaidjan">Azerbaidjan</option>
	                		        <option value="Bahamas">Bahamas</option>
	                		        <option value="Bahrain">Bahrain</option>
	                		        <option value="Bangladesh">Bangladesh</option>
	                		        <option value="Barbados">Barbados</option>
	                		        <option value="Belarus">Belarus</option>
	                		        <option value="Belgium">Belgium</option>
	                		        <option value="Belize">Belize</option>
	                		        <option value="Benin">Benin</option>
	                		        <option value="Bermuda">Bermuda</option>
	                		        <option value="Bhutan">Bhutan</option>
	                		        <option value="Bolivia">Bolivia</option>
	                		        <option value="Bosnia-Herzegovina">Bosnia-Herzegovina</option>
	                		        <option value="Botswana">Botswana</option>
	                		        <option value="Bouvet Island">Bouvet Island</option>
	                		        <option value="Brazil">Brazil</option>
	                		        <option value="British Indian Ocean Territory">British Indian Ocean Territory</option>
	                		        <option value="Brunei Darussalam">Brunei Darussalam</option>
	                		        <option value="Bulgaria">Bulgaria</option>
	                		        <option value="Burkina Faso">Burkina Faso</option>
	                		        <option value="Burundi">Burundi</option>
	                		        <option value="Cambodia">Cambodia</option>
	                		        <option value="Cameroon">Cameroon</option>
	                		        <option value="Canada">Canada</option>
	                		        <option value="Cape Verde">Cape Verde</option>
	                		        <option value="Cayman Islands">Cayman Islands</option>
	                		        <option value="Central African Republic">Central African Republic</option>
	                		        <option value="Chad">Chad</option>
	                		        <option value="Chile">Chile</option>
	                		        <option value="China">China</option>
	                		        <option value="Christmas Island">Christmas Island</option>
	                		        <option value="Cocos Islands">Cocos Islands</option>
	                		        <option value="Colombia">Colombia</option>
	                		        <option value="Comoros">Comoros</option>
	                		        <option value="Congo">Congo</option>
	                		        <option value="Congo, Democratic Republic">Congo, Democratic Republic</option>
	                		        <option value="Cook Islands">Cook Islands</option>
	                		        <option value="Costa Rica">Costa Rica</option>
	                		        <option value="Cote D'Ivoire">Cote D'Ivoire</option>
	                		        <option value="Croatia">Croatia</option>
	                		        <option value="Cuba">Cuba</option>
	                		        <option value="Curacao">Curacao</option>
	                		        <option value="Cyprus">Cyprus</option>
	                		        <option value="Czech Republic">Czech Republic</option>
	                		        <option value="Denmark">Denmark</option>
	                		        <option value="Djibuti">Djibuti</option>
	                		        <option value="Dominica">Dominica</option>
	                		        <option value="Dominican Republic">Dominican Republic</option>
	                		        <option value="Ecuador">Ecuador</option>
	                		        <option value="Egypt">Egypt</option>
	                		        <option value="El Salvador">El Salvador</option>
	                		        <option value="Equatorial Guinea">Equatorial Guinea</option>
	                		        <option value="Eritrea">Eritrea</option>
	                		        <option value="Estonia">Estonia</option>
	                		        <option value="Ethiopia">Ethiopia</option>
	                		        <option value="Falkland Islands">Falkland Islands</option>
	                		        <option value="Faroe Islands">Faroe Islands</option>
	                		        <option value="Fiji">Fiji</option>
	                		        <option value="Finland">Finland</option>
	                		        <option value="France">France</option>
	                		        <option value="French Guiana">French Guiana</option>
	                		        <option value="French Polynesia">French Polynesia</option>
	                		        <option value="French Southern Territories">French Southern Territories</option>
	                		        <option value="Gabon">Gabon</option>
	                		        <option value="Gambia">Gambia</option>
	                		        <option value="Georgia">Georgia</option>
	                		        <option value="Germany">Germany</option>
	                		        <option value="Ghana">Ghana</option>
	                		        <option value="Gibraltar">Gibraltar</option>
	                		        <option value="Greece">Greece</option>
	                		        <option value="Greenland">Greenland</option>
	                		        <option value="Grenada">Grenada</option>
	                		        <option value="Guadeloupe">Guadeloupe</option>
	                		        <option value="Guatemala">Guatemala</option>
	                		        <option value="Guinea">Guinea</option>
	                		        <option value="Guinea Bissau">Guinea Bissau</option>
	                		        <option value="Guyana">Guyana</option>
	                		        <option value="Haiti">Haiti</option>
	                		        <option value="Heard and MC Donald Islands">Heard and MC Donald Islands</option>
	                		        <option value="Honduras">Honduras</option>
	                		        <option value="Hong Kong">Hong Kong</option>
	                		        <option value="Hungary">Hungary</option>
	                		        <option value="Iceland">Iceland</option>
	                		        <option value="India">India</option>
	                		        <option value="Indonesia">Indonesia</option>
	                		        <option value="Iran">Iran</option>
	                		        <option value="Iraq">Iraq</option>
	                		        <option value="Ireland">Ireland</option>
	                		        <option value="Israel">Israel</option>
	                		        <option value="Italy">Italy</option>
	                		        <option value="Jamaica">Jamaica</option>
	                		        <option value="Japan">Japan</option>
	                		        <option value="Jordan">Jordan</option>
	                		        <option value="Kazakhstan">Kazakhstan</option>
	                		        <option value="Kenya">Kenya</option>
	                		        <option value="Kiribati">Kiribati</option>
	                		        <option value="Korea, Democratic People's Rep">Korea, Democratic People's Rep</option>
	                		        <option value="Korea, Republic of">Korea, Republic of</option>
	                		        <option value="Kosovo">Kosovo</option>
	                		        <option value="Kuwait">Kuwait</option>
	                		        <option value="Kyrgyzstan">Kyrgyzstan</option>
	                		        <option value="Laos">Laos</option>
	                		        <option value="Latvia">Latvia</option>
	                		        <option value="Lebanon">Lebanon</option>
	                		        <option value="Lesotho">Lesotho</option>
	                		        <option value="Liberia">Liberia</option>
	                		        <option value="Libya">Libya</option>
	                		        <option value="Liechtenstein">Liechtenstein</option>
	                		        <option value="Lithuania">Lithuania</option>
	                		        <option value="Luxembourg">Luxembourg</option>
	                		        <option value="Macau">Macau</option>
	                		        <option value="Macedonia">Macedonia</option>
	                		        <option value="Madagascar">Madagascar</option>
	                		        <option value="Malawi">Malawi</option>
	                		        <option value="Malaysia">Malaysia</option>
	                		        <option value="Maldives">Maldives</option>
	                		        <option value="Mali">Mali</option>
	                		        <option value="Malta">Malta</option>
	                		        <option value="Marshall Islands">Marshall Islands</option>
	                		        <option value="Martinique">Martinique</option>
	                		        <option value="Mauritania">Mauritania</option>
	                		        <option value="Mauritius">Mauritius</option>
	                		        <option value="Mayotte">Mayotte</option>
	                		        <option value="Mexico">Mexico</option>
	                		        <option value="Micronesia">Micronesia</option>
	                		        <option value="Moldava">Moldava</option>
	                		        <option value="Monaco">Monaco</option>
	                		        <option value="Mongolia">Mongolia</option>
	                		        <option value="Montenegro">Montenegro</option>
	                		        <option value="Montserrat">Montserrat</option>
	                		        <option value="Morocco">Morocco</option>
	                		        <option value="Mozambique">Mozambique</option>
	                		        <option value="Myanmar">Myanmar</option>
	                		        <option value="Namibia">Namibia</option>
	                		        <option value="Nauru">Nauru</option>
	                		        <option value="Nepal">Nepal</option>
	                		        <option value="Netherlands">Netherlands</option>
	                		        <option value="Netherlands Antilles">Netherlands Antilles</option>
	                		        <option value="New Caledonia">New Caledonia</option>
	                		        <option value="New Zealand">New Zealand</option>
	                		        <option value="Nicaragua">Nicaragua</option>
	                		        <option value="Niger">Niger</option>
	                		        <option value="Nigeria">Nigeria</option>
	                		        <option value="Niue">Niue</option>
	                		        <option value="Norfolk Island">Norfolk Island</option>
	                		        <option value="Northern Mariana Islands">Northern Mariana Islands</option>
	                		        <option value="Norway">Norway</option>
	                		        <option value="Oman">Oman</option>
	                		        <option value="Pakistan">Pakistan</option>
	                		        <option value="Palau">Palau</option>
	                		        <option value="Palestine">Palestine</option>
	                		        <option value="Panama">Panama</option>
	                		        <option value="Papua New Guinea">Papua New Guinea</option>
	                		        <option value="Paraguay">Paraguay</option>
	                		        <option value="Peru">Peru</option>
	                		        <option value="Philippines">Philippines</option>
	                		        <option value="Pitcairn">Pitcairn</option>
	                		        <option value="Poland">Poland</option>
	                		        <option value="Portugal">Portugal</option>
	                		        <option value="Qatar">Qatar</option>
	                		        <option value="Reunion">Reunion</option>
	                		        <option value="Romania">Romania</option>
	                		        <option value="Russian Federation">Russian Federation</option>
	                		        <option value="Rwanda">Rwanda</option>
	                		        <option value="S Georgia and S Sandwich Islands">S Georgia and S Sandwich Islands</option>
	                		        <option value="Samoa">Samoa</option>
	                		        <option value="San Marino">San Marino</option>
	                		        <option value="Sao Tome and Principe">Sao Tome and Principe</option>
	                		        <option value="Saudi Arabia">Saudi Arabia</option>
	                		        <option value="Senegal">Senegal</option>
	                		        <option value="Serbia">Serbia</option>
	                		        <option value="Seychelles">Seychelles</option>
	                		        <option value="Sierra Leone">Sierra Leone</option>
	                		        <option value="Singapore">Singapore</option>
	                		        <option value="Slovakia">Slovakia</option>
	                		        <option value="Slovenia">Slovenia</option>
	                		        <option value="Solomon Islands">Solomon Islands</option>
	                		        <option value="Somalia">Somalia</option>
	                		        <option value="South Africa">South Africa</option>
	                		        <option value="Spain">Spain</option>
	                		        <option value="Sri Lanka">Sri Lanka</option>
	                		        <option value="St Helena">St Helena</option>
	                		        <option value="St Kitts and Nevis">St Kitts and Nevis</option>
	                		        <option value="St Lucia">St Lucia</option>
	                		        <option value="St Pierre and Miquelon">St Pierre and Miquelon</option>
	                		        <option value="St Vincent and Grenadines">St Vincent and Grenadines</option>
	                		        <option value="Sudan">Sudan</option>
	                		        <option value="Suriname">Suriname</option>
	                		        <option value="Svalbard and Jan Mayen">Svalbard and Jan Mayen</option>
	                		        <option value="Swaziland">Swaziland</option>
	                		        <option value="Sweden">Sweden</option>
	                		        <option value="Switzerland">Switzerland</option>
	                		        <option value="Syria">Syria</option>
	                		        <option value="Taiwan">Taiwan</option>
	                		        <option value="Tajikistan">Tajikistan</option>
	                		        <option value="Tanzania">Tanzania</option>
	                		        <option value="Thailand">Thailand</option>
	                		        <option value="Timor-Leste">Timor-Leste</option>
	                		        <option value="Togo">Togo</option>
	                		        <option value="Tokelau">Tokelau</option>
	                		        <option value="Tonga">Tonga</option>
	                		        <option value="Trinidad and Tobago">Trinidad and Tobago</option>
	                		        <option value="Tunisia">Tunisia</option>
	                		        <option value="Turkey">Turkey</option>
	                		        <option value="Turkmenistan">Turkmenistan</option>
	                		        <option value="Turks and Caicos Islands">Turks and Caicos Islands</option>
	                		        <option value="Tuvalu">Tuvalu</option>
	                		        <option value="US Minor Islands">US Minor Islands</option>
	                		        <option value="Uganda">Uganda</option>
	                		        <option value="Ukraine">Ukraine</option>
	                		        <option value="United Arab Emirates">United Arab Emirates</option>
	                		        <option value="United Kingdom">United Kingdom</option>
	                		        <option value="Uruguay">Uruguay</option>
	                		        <option value="Uzbekistan">Uzbekistan</option>
	                		        <option value="Vanuatu">Vanuatu</option>
	                		        <option value="Vatican City">Vatican City</option>
	                		        <option value="Venezuela">Venezuela</option>
	                		        <option value="Vietnam">Vietnam</option>
	                		        <option value="Virgin Islands (British)">Virgin Islands (British)</option>
	                		        <option value="Wallis and Futuna">Wallis and Futuna</option>
	                		        <option value="Western Sahara">Western Sahara</option>
	                		        <option value="Yemen">Yemen</option>
	                		        <option value="Yugoslavia">Yugoslavia</option>
	                		        <option value="Zambia">Zambia</option>
	                		        <option value="Zimbabwe">Zimbabwe</option>
	                								</select>
	                		</div>
	                	</div>
	                </fieldset>
	            </div>
	            <div class="section">
	                <fieldset>
	                	<legend>Contact</legend>
	                	<div class="row">
	                		<div class="form-group col-md-6">
	                		    <label class="control-label" for="phone">Preferred Phone</label>
	                		    <input class="form-control" id="phone" name="pt_phone" value="" type="tel" maxlength="25" required />
	                		</div>
	                		<div class="form-group col-md-6">
	                		    <label class="control-label" for="phone-type">Phone Type</label>
	                		    <select class="form-control" id="phone-type" name="pt_phone_type" required>
	                		        <option selected="selected" value="">Please select one . . .</option>
	                		        <option value="Cell">Cell</option>
	                		        <option value="Home">Home</option>
	                		        <option value="Work">Work</option>
	                		    </select>
	                		</div>
	                	</div>
	                	<div class="row">
	                		<div class="form-group col-md-6">
	                		    <label class="control-label" for="email">Email</label>
	                		    <input class="form-control" id="email" name="userEmail" value="" type="email" maxlength="50" required />
	                		</div>
	                		<div class="form-group col-md-6">
	                		    <label class="control-label" for="conf-email">Re-type Email</label>
	                		    <input class="form-control" id="conf-email" name="conf_email" value="" type="email" maxlength="50" required />
	                		</div>
	                	</div>
	                </fieldset>
	            </div>
              <div class="section">
                <fieldset>
                  <legend>Radios</legend>
                  <fieldset>
                    <legend>Are you human?</legend>
                      <label for="yes" class="radio-inline">
                        <input type="radio" id="yes" name="testRadio" required /> Yes
                      </label>
                      <label for="no" class="radio-inline">
                        <input type="radio" id="no" name="testRadio" /> No
                      </label>
                      <label for="dog" class="radio-inline">
                        <input type="radio" id="dog" name="testRadio" /> I'm a dog
                      </label>
                  </fieldset>
                </fieldset>
              </div>
	        </fieldset>
	        <div class="form-group">
	        	<button type="submit" value="Submit" class="btn btn-lg btn-primary submit">Submit</button>
	        </div>
	    </form>
      </div>

    </div> <!-- /container -->


    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://codeorigin.jquery.com/jquery-1.10.2.min.js"></script>
    <script src="https://netdna.bootstrapcdn.com/bootstrap/3.0.1/js/bootstrap.min.js"></script>
    <script>
    	$(document).ready(function() {
			  $('#test_form').showProgress();
		  });
    </script>
  </body>
</html>

              
            
!

CSS

              
                body {
	padding: 30px 0 100px 0;
}

fieldset fieldset legend {
	font-size: 1.25em;
}

fieldset fieldset fieldset legend {
	font-size: 1em;
  font-weight: bold;
  border-bottom: none;
  margin-bottom: 5px;
}

.row legend {
	margin-left: 15px;
}

.submit {
	margin-top: 25px;
}

.jumbotron ul {
	font-size: .75em;
}

#progress-bar-wrap {
	min-height: 20px;	
	display: none;
	margin-bottom: 0;
}

#progress-bar-wrap .encouragement {
	display: none;
}

#progress-bar-wrap .close:before {
	content: "\f0d7";
	display: inline-block;
	font-family: FontAwesome;
	font-style: normal;
	font-weight: normal;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
#progress-bar-wrap span {
	line-height: 1.75em;
}
#progress-bar-wrap.collapsed h4 {
	font-size: 14px;
	color: #999999;
}
#progress-bar-wrap.collapsed .encouragement {
	display: none;
}
#progress-bar-wrap.collapsed .progress {
	display: none;
}
#progress-bar-wrap.collapsed .close:before {
	content: "\f0d8";
	display: inline-block;
	font-family: FontAwesome;
	font-style: normal;
	font-weight: normal;
	line-height: .75em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
              
            
!

JS

              
                /*
	jQuery Plugin
	Name: Collapsible Progress Bar
	Version: 0.8
	Description: Uses Twitter Bootstrap 3.0 styling to present an accessible, simple progress bar for a web form, with customizable messages of encouragement.
	Dependencies: Bootstrap 3.0 (https://getbootstrap.com/), Font Awesome 4.0.3 (https://fortawesome.github.io/Font-Awesome/), jQuery 1.10.2 or later (https://jquery.com/)
	Author: Joshua Blackwood
	Copyright: 2013 Joshua Blackwood under the MIT License (https://opensource.org/licenses/MIT)
 */

(function($) {

	$.fn.showProgress = function(options) {

		var defaults = {
			message: {
				'25': 'You\'re doing great so far!',
				'50': 'You\'re halfway there!',
				'75': 'Look at that, you\'re nearly done already!',
				'100': 'All done! Just click <strong>Submit</strong> to continue!'
			},
			position: 'bottom'
		};

		options = $.extend(defaults, options);

		var markup = '<!-- Progress Bar --><div class="navbar navbar-default navbar-fixed-'+ options.position +'" id="progress-bar-wrap"><div class="container"><h4>Completion Progress <small class="encouragement"></small><button type="button" class="close" data-dismiss="progress-bar" aria-hidden="true" title="Collapse"><span class="sr-only">Collapse</span></button></h4><div class="progress"><div id="form-progress" class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%"><span class="sr-only">0% Complete</span></div></div></div></div> <!-- /progress bar -->';

		$('body').append(markup);

		var dismiss = $('button[data-dismiss="progress-bar"]'),
        radioSiblings = $(this).find('input[type=radio][required], input[type=radio].required').parents('label').siblings().children('input[type=radio]'),
			  input = $(this).find('input[required], select[required], textarea[required], input.required, select.required, textarea.required').add(radioSiblings),
			  magicNumber = 100 / (input.length - radioSiblings.length),
			  pbw = $('#progress-bar-wrap');

		dismiss.on('click', function() {
			pbw.toggleClass('collapsed', 300);
		});

		input.data('progress', '0');
    
		input.change(function(){

			var $this = $(this),
				progressBar = $('#form-progress'),
				srText = $('#form-progress > span'),
				avn = progressBar.attr('aria-valuenow'),
				hasProgress = $this.data('progress'),
				siblingInput = $this.parents('label').siblings().children('input'),
				siblingName = siblingInput.attr('name'),
				encouragement = $('.encouragement');

			if (pbw.not(':visible')) {
				pbw.show(300);
			}

			if (hasProgress == '0') {
				if ($this.attr('name') == siblingName) {
					siblingInput.data('progress', '1');
				}
				avnMath = parseFloat(avn) + parseFloat(magicNumber);
				updateAVN = avnMath.toFixed(3);
				pbWidth = updateAVN;
				progressBar.width(pbWidth + '%');
				progressBar.attr('aria-valuenow', updateAVN);
				srText.text(updateAVN + '% Complete');
				$this.data('progress', '1');
				console.log('AVN is: ' + updateAVN);
			} else if (! $this.val() ) { // If the field value is emptied, we need to remove that progress.
				$this.data('progress', '0');
				avnMath = parseFloat(avn) - parseFloat(magicNumber);
				updateAVN = avnMath.toFixed(2);
				pbWidth = updateAVN;
				progressBar.width(pbWidth + '%');
				progressBar.attr('aria-valuenow', updateAVN);
				srText.text(updateAVN + '% Complete');
				console.log('AVN is: ' + updateAVN);
			}
			
			for (var key in options.message) {
				keyMatch = parseFloat(key - 5.00);
				var value = options.message[key];
				if (encouragement.not(':visible')) {
					encouragement.show(300);
				}
				if (updateAVN >= keyMatch) {
					encouragement.html(value);
					console.log(key + ' : ' + value);
				}
			}

		});
	};

})(jQuery);
              
            
!
999px

Console