Skip to content

Commit 1f6f149

Browse files
committed
add step to slider example
1 parent d0911d3 commit 1f6f149

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/forms/slider/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ <h2>Slider</h2>
4242

4343
<pre><code>
4444
&lt;label for=&quot;slider-0&quot;&gt;Input slider:&lt;/label&gt;
45-
&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;
45+
&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;
4646
</code></pre>
4747

4848
<p>The default slider is displayed like this:</p>
4949
<label for="slider-0">Input slider:</label>
50-
<input type="range" name="slider-1" id="slider-0" value="25" min="0" max="100" />
50+
<input type="range" name="slider-1" id="slider-0" value="25" min="0" max="100" step="5" />
5151

5252
<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>
5353

0 commit comments

Comments
 (0)