JSFiddle - React, Tailwind, and code Playground

by grant

HTML

<div data-role="fieldcontain">
                <fieldset data-role="controlgroup" data-type="horizontal">
                    <legend>Layout view:</legend>
                          <input type="radio" name="radio-choice" id="radio-choice-c" value="on"  />
                          <label for="radio-choice-c">List</label>
                          <input type="radio" name="radio-choice" id="radio-choice-d" value="off" checked="checked" />
                          <label for="radio-choice-d">Grid</label>
                          <input type="radio" name="radio-choice" id="radio-choice-e" value="other" />
                          <label for="radio-choice-e">Gallery</label>
                            </fieldset>
           </div>

<div data-role="fieldcontain">
        <label for="slider">Room:</label>
        <input type="range" name="slider" id="slider" value="" min="" max="" data-highlight="true"  />
</div>

JavaScript

var A_Route = ['1000', '2', '3', '2200'];


        $('#slider').attr('min', A_Route[0]);
        $('#slider').attr('max', A_Route[3]);