Hi,
Please help me on following query.
How do i create a range slider in HTML5 using jQuery?
The slider should display based on a value.
Hi makenzi.exc,
Use HTML 5 input type range element.
Refer below sample.
HTML
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <style type="text/css"> body { font-family: Arial; font-size: 10pt; } </style> </head> <body> <div style="width:100%"> <input id="txtRange" type="range" min="1" max="100" value="65" style="width:98%" /> </div> <span id="lblValue"></span> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> <script type="text/javascript"> $(function () { $("#lblValue").html($("#txtRange").val()); $("#txtRange").on("input", function () { $("#lblValue").html($("#txtRange").val()); }); }); </script> </body> </html>
Demo
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.