Skip to content
This repository
Browse code

Fix Markdown formatting in README.

  • Loading branch information...
commit 0b013408b8260a2e796187fa6ec02cec24ddf8c7 1 parent b4fe503
Mathias Bynens authored May 04, 2011

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  README.md
4  README.md
Source Rendered
@@ -34,8 +34,8 @@ The plugin automatically adds `class="placeholder"` to the elements who are curr
34 34
 * Caches the results of its two feature tests in `jQuery.fn.placeholder.input` and `jQuery.fn.placeholder.textarea`. For example, if `@placeholder` is natively supported for `input` elements, `jQuery.fn.placeholder.input` will be `true`. After loading the plugin, you can re-use these properties in your own code.
35 35
 * Makes sure it never causes duplicate IDs in your DOM, even in browsers that need an extra `input` element to fake `@placeholder` for password inputs. This means you can safely do stuff like:
36 36
 
37  
-      <label for="bar">Example label</label>
38  
-      <input type="password" placeholder="foo" id="bar">
  37
+        <label for="bar">Example label</label>
  38
+        <input type="password" placeholder="foo" id="bar">
39 39
 
40 40
     And the `<label>` will always point to the `<input>` element you’d expect. Also, all CSS styles based on the ID will just work™.
41 41
 

0 notes on commit 0b01340

Please sign in to comment.
Something went wrong with that request. Please try again.