[jQuery] Re: Calling function through an event
$(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 <dapurno@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){
//
}
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home