Skip to content

Adds a clear button to every input field using bootstrap icons. clear icon appears upon focus and will disappear on blur events.

Notifications You must be signed in to change notification settings

mahpour/bootstrap-input-clear-button

Repository files navigation

jQuery Clear Text plugin

Adds an iOS style clear button to the input fields using bootstrap icons. clear icon appears upon focus and will disappear on blur events.

Usage:

$("input").inputClear();

To exclude certain input elements from having clear option:

<input type="text" class="no-clear" />

or if you can't touch your existing code just add exclude option:

<input type="text" class="myclass" />
var options= {'exclude':'.myclass' };
$("input").inputClear(options);

Live example on JsFiddle: http://jsfiddle.net/ELGga/embedded/result/

About

Adds a clear button to every input field using bootstrap icons. clear icon appears upon focus and will disappear on blur events.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published