I am using the jquery slider, the issue that I face is only the slider button is displayed and not the range. When I try to slide the button, then it does not slide.
HTML
<div id="slider-range"></div>
JS
$("#slider-range").slider({
range: true,
min: 0,
max: 500,
values: [75, 300],
slide: function (event, ui) {
console.log("sliding");
}
});
After this is how the UI comes up

Notes:


It would be very helpful if someone can help me through this.
Use this:
https://jsfiddle.net/6sxg9ytd/1/
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery UI Slider - Default functionality</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>
$( function() {
$( "#slider" ).slider(
{
range: true,
min: 0,
max: 500,
values: [ 55, 105 ],
slide: function( event, ui ) {
console.log("sliding");
}
});
} );
</script>
</head>
<body>
<div id="slider"></div>
</body>
</html>