Skip to content

February 24, 2012

jQuery clearInput plugin

While working a web-application once we tried to use input field placeholder values to clarify input types. Which was a hassle, we ended up settling for a script downloaded from somewhere, which we still had to modify anyway..

Based on that experience I decided to create a small plugin that would everything we wanted (and just a bit more) based on jQuery.
It is free to download at https://github.com/thijsdamen/jquery-clearinput, if you like it, please give me kudos :)

Plugin works awesome for form fields with default values. For example a search input field.

My first ‘official’ jQuery plugin and can’t say I am unpleased with it. If you think it can be improved, please fork it and create a pull request.

Read more from Uncategorized

Share your thoughts, post a comment.

(required)
(required)

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments