I tried to use slidestop handler by following this. i.e.,
$("#tempslider").on("slidestop", function(e){
alert($("#tempslider").val());
});
However, I could not get it to work, and luckily I read this post and it solved my problem. The solution is that you need to put the code in the pagecreate eventhandler, i.e,
$(document).on("pagecreate", function () {
$("#slider-step").on('slidestop', function (event) {
console.log("slidestop event fired");
});
});
See jsFiddle.
Actually both code work in jsFiddle (first one)(second one), but only the second one works in my project. I am a jQuery newbie. I had hard time figuring out why. Could anyone help to explain why? Thanks!