/bootstrap-input-clear-button

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

Primary LanguageJavaScript

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/