Skip to content
Browse files

add step to slider example

  • Loading branch information...
1 parent d0911d3 commit 1f6f149e8372261371b475306b9804e3fa047011 @johnbender johnbender committed Nov 23, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/forms/slider/index.html
View
4 docs/forms/slider/index.html
@@ -42,12 +42,12 @@
<pre><code>
&lt;label for=&quot;slider-0&quot;&gt;Input slider:&lt;/label&gt;
- &lt;input type=&quot;range&quot; name=&quot;slider&quot; id=&quot;slider-0&quot; value=&quot;25&quot; min=&quot;0&quot; max=&quot;100&quot; /&gt;
+ &lt;input type=&quot;range&quot; name=&quot;slider&quot; id=&quot;slider-0&quot; value=&quot;25&quot; min=&quot;0&quot; max=&quot;100&quot; step=&quot;5&quot; /&gt;
</code></pre>
<p>The default slider is displayed like this:</p>
<label for="slider-0">Input slider:</label>
- <input type="range" name="slider-1" id="slider-0" value="25" min="0" max="100" />
+ <input type="range" name="slider-1" id="slider-0" value="25" min="0" max="100" step="5" />
<p>Optionally wrap the slider markup in a container with the <code>data-role="fieldcontain"</code> attribute to help visually group it in a longer form.</p>

0 comments on commit 1f6f149

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