add step to slider example

This commit is contained in:
John Bender 2011-11-23 13:59:28 -08:00
parent d0911d3cd6
commit 1f6f149e83

View file

@ -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>