Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 648 Bytes

README.md

File metadata and controls

32 lines (23 loc) · 648 Bytes

jquery-clear-button

Adds a reset button on <input type="text">.

git clone https://github.com/qoozy/jquery-input-clear.git

Click the input area then the clear button will appear to reset the field.

See example.

Screenshot

How to use

HTML

<script src="jquery-clear-button.js"></script>

<input type="text" id="with-clearbtn" value="Click me">

Javascript

<script type="text/javascript">
    /**
     * enabled jQuery Clear Button
     */
    $('#with-clearbtn').jQueryClearButton();
</script>