How to show a seekerbar/slider in jquery?

 Posted by Vivek.Ramapuram on 9/6/2014 | Category: jQuery Interview questions | Views: 490 | Points: 40
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 

Comments or Responses

Login to post response