如题,我想在
jQuery("#Slider2").slider({ from: 55, to: 540, step: 20, smooth: true, round: 0, dimension: "", skin: "" });
之后调用自定义函数,也就是当滑动动作完成之后立即执行自定义函数,试下下面的方法,不行jQuery("#Slider2").slider({ from: 55, to: 540, step: 20, smooth: true, round: 0, dimension: "", skin: "" }).myfunc();
该怎么写呢?
jQuery("#Slider2").slider({ from: 55, to: 540, step: 20, smooth: true, round: 0, dimension: "", skin: "" });
之后调用自定义函数,也就是当滑动动作完成之后立即执行自定义函数,试下下面的方法,不行jQuery("#Slider2").slider({ from: 55, to: 540, step: 20, smooth: true, round: 0, dimension: "", skin: "" }).myfunc();
该怎么写呢?
jQuery("#Slider2").bind("slidestop",myfunc());
http://jqueryui.com/demos/slider/#event-stop
range: "max",
min: 1,
max: 10,
value: 2,
slide: function( event, ui ) {
$( "#amount" ).val( ui.value );
}
});