Home Ajax Jquery jQuery UI Widget : Slider
Questions:Ask|Latest

 
 

Share on Google+Share on Google+

jQuery UI Widget : Slider

Advertisement
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.

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: April 18, 2011

Related Tutorials

Ask Questions?    Discuss: jQuery UI Widget : Slider  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
DMCA.com