JSFiddle - React, Tailwind, and code Playground
by Shef
HTML
<li>
<label for="budget">Budget*</label>
<input type="range" min="1000" max="10000" value="2000" step="1000">
<span>$</span><span class="range">2000</span>
</li>
<li>
<label for="budget">Budget*</label>
<input type="range" min="1000" max="10000" value="2000" step="1000">
<span class="range">2000</span><span> weeks</span>
</li>
JavaScript
$(document).ready(function(){
$('input[type="range"]').change(function(){
var $this = $(this),
$li = $this.closest('li');
$li.find('span.range').text($this.val());
});
});