Skip to content

Simple jQuery plugin to add a progress bar under text inputs.

Notifications You must be signed in to change notification settings

devayes/inprogress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

inprogress jQuery Plugin

Simple jQuery plugin to add a progress bar under text inputs. Solves the UX issue of having a maximum character limit for an input field and the user having no idea how close or far they are to the limit without counting or submitting and receiving an error.

Usage

Add to a form element:

<textarea id="wookie"></textarea>
$('#wookie').inprogress({
   max: 500, // Maximum 500 characters
   bgColor: false, // Default green to red, set a color here to over-ride (ie: #f00)
   minHeight: '3px', // Minimum height of the progress bar
   showPercent: false, // Adds x% to progress bar
   showRemaining: false, // adds (max - length) to progress bar
   textColor: '#fff', // Set the text color for the 2 prior options
});

About

Simple jQuery plugin to add a progress bar under text inputs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published