"Displaying value of jQuery <input> range within the thumb"
Bootstrap 4.1.1 Snippet by muhittinbudak

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <h3>Displaying value of jQuery input range within the thumb</h3> <hr /><br> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script> <div id="slider"> <div id="custom-handle" class="ui-slider-handle"></div> </div> </div>
body { font-family: Arial, Helvetica, sans-serif; } #custom-handle { width: 3em; height: 1.6em; top: 50%; margin-top: -.8em; text-align: center; line-height: 1.6em; }
$(function() { var handle = $("#custom-handle"); $("#slider").slider({ create: function() { handle.text($(this).slider("value")); }, slide: function(event, ui) { handle.text(ui.value); } }); });

Related: See More


Questions / Comments: