Introducing the slider widget
Creating the default, basic slider takes no more code than any of the other widgets that we have looked at so far. The underlying HTML markup required is also minimal. Let's create a basic one now. In a new page in your text editor, add the following code:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Slider</title> <link rel="stylesheet" href="development-bundle/themes/redmond/jquery.ui.all.css"> <script src="js/jquery-2.0.3.js"></script> <script src="development-bundle/ui/jquery.ui.core.js"></script> <script src="development-bundle/ui/jquery.ui.widget.js"></script> <script src="development-bundle/ui/jquery.ui.mouse.js"></script> <script src="development-bundle/ui/jquery.ui.slider.js"></script> <script> $(document).ready(function($){ $("#mySlider").slider(); }); </script> </head> <body>...