jQuery UI Widget : Slider

This page discusses - jQuery UI Widget : Slider

jQuery UI Widget : Slider

jQuery UI Widget : Slider

     

jQuery UI Widget : Slider

The jQuery UI Slider plugin makes selected elements into sliders. There are various options such as multiple handles, and ranges. The handle can be moved with the mouse or the arrow keys.

You can implement slider as : $("#slider").slider();

here 'slider' is the div element name.

For options, events ,method and theming click here

EXAMPLE :

slider.html

<!DOCTYPE html>
<html>
<head>
  <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/
1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
        
<script src="http://ajax.googleapis.com/ajax/
libs/jquery/1.4/jquery.min.js"></script>
        
<script src="http://ajax.googleapis.com/ajax/
libs/jqueryui/1.8/jquery-ui.min.js"></script>
        
<style type="text/css">
 #slider { margin: 10px; }
</style>
<script>
  $(document).ready(function() {
    $("#slider").slider();
  });
</script>
</head>
<body style="font-size:62.5%;">
  
<div id="slider"></div>

</body>
</html>

Output :

Download Source Code

Click here to see online demo

Learn from experts! Attend jQuery Training classes.