Skip to content

Commit

Permalink
add README
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrjones committed Aug 2, 2010
1 parent c4162a1 commit ee50905
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README
@@ -0,0 +1,16 @@
jQuery Placeholder Plugin
-------------------------

This is a small jQuery plugin that emulates the placeholder attribute in web browsers that do not support it. If the browser does support it, the plugin does nothing.

To use the plugin, add the JS and CSS files to your page and do the following:

jQuery(document).ready(function($) {
$(":input[placeholder]").placeholder();
});

Then, in your HTML you can use the placeholder plugin as documented in the HTML5 spec:

<input type="search" placeholder="Search..." />

For more information and some demos, see http://andrew-jones.com/jquery-placeholder-plugin

0 comments on commit ee50905

Please sign in to comment.