Permalink
Browse files

Updated the example code.

  • Loading branch information...
1 parent 494ee4a commit 8e16cc6f657e91957f588497e645bb7a536c5b94 @filipstefansson committed Feb 8, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 README.md
View
8 README.md
@@ -11,12 +11,18 @@ Import jquery.auto-placeholders.js
If you want the placeholder to look like a real placeholder you should also add this CSS:
-```ruby
+```css
.placeholder {
color: darkGrey;
}
```
+And then you can use this on any HTML element:
+
+```javascript
+$("#example_form").autoPlaceholders()
+```
+
## Dependencies
* Tested against jQuery 1.7.1

0 comments on commit 8e16cc6

Please sign in to comment.