Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Yes, it is possible to have a HTML slider with two inputs using the "range" input type and the "min" and "max" attributes. Here's an example:

<label for="slider">Select a range:</label>
<input type="range" id="slider" name="slider" min="0" max="10" value="5">
<input type="range" id="slider2" name="slider2" min="0" max="10" value="7">

This creates a slider with two handles that can be moved independently to select two different values within the range of 0 to 10. The values chosen can be submitted as form data using the "name" attribute.