Demo of Slider using JQuery UI



HTML

<div id="slider"></div>
<div id=d1></div> 

JQuery


<script>
$(document).ready(function() {
//////////////////////////
$(function() {
 $( "#slider" ).slider({slide: function( event, ui ) {
 $( "#d1" ).html( ui.value );
  }
});
});
////////////////
})
</script>

Full code with CDN

<html>
<head>
<title></title>
</head>

<div id="slider"></div>
<div id=d1></div>

<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
<link href="https://code.jquery.com/ui/1.12.1/themes/blitzer/jquery-ui.css" rel="stylesheet">

<script>
$(document).ready(function() {
////////////
$(function() {
 $( "#slider" ).slider({slide: function( event, ui ) {
   $( "#d1" ).html( ui.value );
 }
});
});
////////////////
})
</script>
</body>
</html>