Home > jquery-placeholders

jquery-placeholders

Jquery-placeholders is a project mainly written in JavaScript, based on the MIT license.

jQuery plugin for input hints via the placeholder HTML5 attribute

h1. jquery-placeholders

jQuery plugin for input hints which uses your placeholder HTML5 attributes, so you can write markup for modern browsers first and degrade gracefully.

h2. Example

$("#someForm").placeholders(["#name", "#email"]);

This would load placeholder text from the placeholder attribute, and prevent the placeholder text from being submitted.

See @demo.html@ for a full example.

Previous:Sms