$(function() {
  $("#slider").slider({
    value:0,
    min: 0,
    max: 11,
    step: 1,
    slide: function(event, ui) {
      myFunction(ui.value);
    }
  });
});

function myFunction(val){
  //
}

- Richard

On Tue, Oct 13, 2009 at 4:48 AM, Vinyl <dapu...@gmail.com> wrote:

>
> I am using a slider and want to add labels to the slide/start event.
> How can I call function from these events?
>
> Something like this:
>
>        $(function() {
>                $("#slider").slider({
>                        value:0,
>                        min: 0,
>                        max: 11,
>                        step: 1,
>                        slide: myFunction(ui.value);
>                });
>        });
>
>       function myFunction(val){
>        //
>       }
>
>

Reply via email to