Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
James Allardice committed Nov 12, 2012
1 parent d19421a commit dbf1228
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ The `init` method is all that you need to call to get the polyfill working. It a

- `hideOnFocus` - If `true`, this option will cause the placeholder to disappear when the element receives focus. If `false`, or not specified, the placeholder will disappear when some input is entered into the element. **Default: `false`**.

- `className` - A custom class name that will be added to each element to which the polyfill applies. **Default: `placeholderspolyfill`**.

- `textColor` - The default color of the placeholder text. **Default: `#999` (gray)**.

- `styleImportant` - Boolean flag that specifies whether or not the `!important` directive should be added to the polyfill styles. **Default: `true`**.

Here's an example call to the `init` method:

Placeholders.init({
Expand Down Expand Up @@ -79,6 +85,13 @@ Placeholders.js aims to support the widest range of browsers possible. The idea

Do you use some obscure browser that doesn't have native `placeholder` attribute support? If so, please let me know so I can make sure Placeholders.js works with it.

##Contributors

Many thanks to [@ioptics](https://github.com/ioptics) for asking me to write this in the first place. Also thanks to:

- [@markcarlson](https://github.com/markcarlson) for a major bug fix
- [@ralgh](https://github.com/ralgh) for adding options to customize the polyfill styles

##Downloads

You can download the repository at various states from the [tags page](https://github.com/jamesallardice/Placeholders.js/tags), or with the following links:
Expand Down

0 comments on commit dbf1228

Please sign in to comment.