Adds a clear button to every input field using bootstrap icons. clear icon appears upon focus and will disappear on blur events.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

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/