Home Ajax Jquery jQuery UI Widget : Slider



jQuery UI Widget : Slider
Posted on: April 18, 2011 at 12:00 AM
This page discusses - 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.

Related Tags for jQuery UI Widget : Slider:


More Tutorials from this section

Ask Questions?    Discuss: jQuery UI Widget : Slider  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.