Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Adds a clear button to every input field using bootstrap icons. clear icon appears upon focus and will disappear on blur events.
JavaScript
branch: master

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/

Something went wrong with that request. Please try again.