I'm trying to use jquery's slider and nothing seems to happen
any ideas why?
<html>
<head>
<script src="jquery-1.4.2.min.js"></script>
<script src="jquery-ui.js"></script>
<style type="text/css">
#myslider { width: 200px; height: 200px; padding: 0.5em; float: left; margin: 10px; background: blue }
</style>
<SCRIPT type=text/javascript>
$(function() {
$("#myslider").slider();
});
</SCRIPT>
</head><body>
<div id="myslider"></div>
</body>
</html>
I think what is missing is the theme/css file:
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/themes/base/jquery-ui.css" type="text/css" media="all" />
I tried your code and it works fine.
Regards
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With