jQuery Input Clear Button Plugin For Bootstrap - Clear Button

File Size: 38.6 KB
Views Total: 3228
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
jQuery Input Clear Button Plugin For Bootstrap - Clear Button

A dead simple jQuery plugin that adds a Windows-like clear / reset button to any text input control using Bootstrap's Glyphicons. The clear button is shown only when the text input is not empty.

See also:

How to use it:

1. Place jQuery library and the jQuery Clear Button plugin at the bottom of your Bootstrap page.

<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="jquery-clear-button.js"></script>

2. Just call the plugin on the desired input filed and the plugin will take care of the rest.

$('#input').jQueryClearButton();

This awesome jQuery plugin is developed by hodade. For more Advanced Usages, please check the demo page or visit the official website.