开发者

jquery plugin "jStepper" - not working for me

I am trying to use this plugin: http://jstepper.emkay.dk/Default.aspx It开发者_开发问答 increments values nicely, but when I try to launch a "onStep" event, it runs it right after the page loads, not when a value is incremented. I hope someone can point me in the right direction, maybe a similar plugin exists? Or maybe its something simple to fix in the plugin's source. You can try this in the "demo" box: $(".txtTesting").jStepper({onStep:alert("test")});


You have to it like this.....

$(obj).jStepper({onStep:testfunction});

function testfunction(objTextField, bDirection, bLimitReached) {
alert("test");
}

or

 $(obj).jStepper({
      onStep: function(objTextField, bDirection, bLimitReached) {
                   alert("test");
      }
});

Thanks

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜