From 24e73f5af4937e4e2c2cefddd483e48207f62219 Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Thu, 18 Jun 2015 10:42:14 +0200 Subject: [PATCH] README: link to HTTPS demo --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 276428b..2165ec3 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## Demo & Examples -http://mathiasbynens.github.io/jquery-placeholder + ## Example Usage @@ -11,7 +11,7 @@ http://mathiasbynens.github.io/jquery-placeholder ```html - + @@ -28,7 +28,7 @@ $('input, textarea').placeholder(); By default, `.placeholder` css class will be added. You can override default by passing the `customClass` option: ```js -$('input, textarea').placeholder({customClass: 'my-placeholder'}); +$('input, textarea').placeholder({ customClass: 'my-placeholder' }); ``` You’ll still be able to use `jQuery#val()` to get and set the input values. If the element is currently showing a placeholder, `.val()` will return an empty string instead of the placeholder text, just like it does in browsers with a native `@placeholder` implementation. Calling `.val('')` to set an element’s value to the empty string will result in the placeholder text (re)appearing. @@ -42,17 +42,17 @@ input, textarea { color: #000; } .placeholder { color: #aaa; } ``` -I’d suggest sticking to the `#aaa` color for placeholder text, as it’s the default in most browsers that support `@placeholder`. If you really want to, though, you can [style the placeholder text in some of the browsers that natively support it](http://stackoverflow.com/questions/2610497/change-an-inputs-html5-placeholder-color-with-css/2610741#2610741). +I’d suggest sticking to the `#aaa` color for placeholder text, as it’s the default in most browsers that support `@placeholder`. If you really want to, though, you can [style the placeholder text in some of the browsers that natively support it](https://stackoverflow.com/a/2610741/96656). ## Installation -You can install jquery-placeholder by using [Bower](http://bower.io). +You can install jquery-placeholder by using [Bower](http://bower.io/). ```bash bower install jquery-placeholder ``` -Or you can install it through [npm](http://npmjs.org/): +Or you can install it through [npm](https://www.npmjs.com/): ``` npm install --save jquery-placeholder