Skip to content

A jquery plugin that generates a bar displaying what percentage of a form's required fields have been completed.

Notifications You must be signed in to change notification settings

Nick011/jquery-completion-meter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

This is a jquery plugin that produces a completion meter to show what percentage of a form has been complete by the user. You basically just have to link the script, put a

<div> tag in your html and then call the 'percentComplete' function on that div tag whenever you want to calculate and display what percentage of the form has been completed. In the above example, the calculation is being made when the page first loads and then every time the user moves off of a field.

The function takes 3 arguments. The first argument is a jquery selector to determine which form fields to calculate. In the example above it's calculating the % for all input fields, but you might want to change this to only calculate for required fields in which case you can pass something like ".required". The second argument is the hex color that you want the meter and it's bor

About

A jquery plugin that generates a bar displaying what percentage of a form's required fields have been completed.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published