PHPackages                             ando/add-clear - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ando/add-clear

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ando/add-clear
==============

A jQuery plugin that adds a input clearing button on any input you apply it to. It clears the value, and returns focus to that field.

010JavaScript

Since Dec 29Pushed 10y ago1 watchersCompare

[ Source](https://github.com/andreydomovoy/Add-Clear)[ Packagist](https://packagist.org/packages/ando/add-clear)[ RSS](/packages/ando-add-clear/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

**Author:** Stephen Korecky
**Website:**
**Plugin Website:**
**NPM jQuery Plugin:**
*jQuery Plugin website is outdated and read-only now. Please use NPM*
**jQuery Plugin:**

About
-----

[](#about)

**Version 2.0**

Add Clear is a jQuery plugin that adds a input clearing button on any input you apply it to. It clears the value, and returns focus to that field.

How to use
----------

[](#how-to-use)

- Load jQuery into your project
- Load Add Clear plugin into your project
- Setup which elements you would like to apply this plugin to.

### Usage

[](#usage)

```
$(function(){
  $("input").addClear();
});

// Example onClear option usage
$("input").addClear({
  onClear: function(){
    alert("call back!");
  }
});
```

### Available Options

[](#available-options)

  Option Default Type   closeSymbol ✖ string   top 1 number   right 4 number   returnFocus true boolean   showOnLoad false boolean   hideOnBlur false boolean   tabbable true boolean   onClear null function

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7680316?v=4)[andreydomovoy](/maintainers/andreydomovoy)[@andreydomovoy](https://github.com/andreydomovoy)

---

Top Contributors

[![skorecky](https://avatars.githubusercontent.com/u/10525?v=4)](https://github.com/skorecky "skorecky (41 commits)")[![Deividy](https://avatars.githubusercontent.com/u/1174445?v=4)](https://github.com/Deividy "Deividy (6 commits)")[![jameswragg](https://avatars.githubusercontent.com/u/204175?v=4)](https://github.com/jameswragg "jameswragg (5 commits)")[![andreydomovoy](https://avatars.githubusercontent.com/u/7680316?v=4)](https://github.com/andreydomovoy "andreydomovoy (1 commits)")[![cezarykluczynski](https://avatars.githubusercontent.com/u/798827?v=4)](https://github.com/cezarykluczynski "cezarykluczynski (1 commits)")

### Embed Badge

![Health badge](/badges/ando-add-clear/health.svg)

```
[![Health](https://phpackages.com/badges/ando-add-clear/health.svg)](https://phpackages.com/packages/ando-add-clear)
```

###  Alternatives

[datatables/datatables

DataTables is a plug-in for the jQuery Javascript library. It is a highly flexible tool, based upon the foundations of progressive enhancement, which will add advanced interaction controls to any HTML table.

7.4k1.5M41](/packages/datatables-datatables)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
