Plugins

User login
Can't find a Plugin?

Can't find a Plugin you are looking for? Check out the jQuery Wiki page.

Are you a plugin developer? Please move your plugin over to this site.

Website Bug or Feature Request?

Found a bug on the new jQuery Plugin website? Have a feature request?

Submit it to the jQuery Plugin website issue queue to ensure it is noticed!

Input Placeholder


Average rating
(2 votes)

This plugin extends the jQuery() class with .placehold() method, which is effective for text inputs and treats the default value those inputs have in HTML markup as a placehold value.

When user focuses an input field, its placehold value has to be cleared out, but it returns back, if user leaves the field having put nothing in there. Additionally, my method can add a specified class to active and inactive fields separately, enabling you to style and access placeholded and active inputs.

Please, remember to validate the form on submit, additionally checking fields for containing a placeholder, because placeholder strings are obviously treated as normal input values by UAs. If a user submits such form, it might even appear valid on the server side, filling your DB with bogus data

Releases

Official releasesDateSizeLinksStatus
0.9.0-minified2008-Mar-27825 bytesRecommended for 1.0.xThis is currently the recommended release for 1.0.x.
0.9.02008-Mar-274.05 KBRecommended for 1.2.xThis is currently the recommended release for 1.2.x.