Answer: By giving a class called slider in jquery
<script>
$("#seekerbar").slider();
</script>
div name should me mentioned as same in the script
<div id="seekerbar"></div>
for example:
This is the vresion of jquery
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.1/themes/smoothness/jquery-ui.css"/>
This should be written with in the body tags
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.1/jquery-ui.js"></script>
<div id="seekerbar"></div>
<script>
$("#seekerbar").slider();
</script>
Asked In: While Learning |
Alert Moderator