tags:

views:

59

answers:

2

Hi All,

I want to create a slider to control the volume of the media player. How to design/create a slider using JQuery.

Geetha.

+2  A: 

jQuery UI has one built in: http://docs.jquery.com/UI/Slider

Dustin Laine
how to get the current position value of the slider?
Geetha
Use the value method, http://docs.jquery.com/UI/Slider#option-value. jQuery provides really good documentation, read it.
Dustin Laine
A: 

Use jQuery slider: http://docs.jquery.com/UI/Slider

To get a value, you can use:

.slider("value")

If you want to get a value when a slider changed:

$( ".selector" ).slider({
   change: function(event, ui) {
   // value is ui.value
 }

});
TK