【发布时间】:2013-03-14 16:34:46
【问题描述】:
我想将 jQuery mobile 的 swiperight event 与图像结合使用,但这似乎不起作用。
HTML:
<div id="one"><img src="http://jquerymobile.com/wp-content/uploads/2012/09/jquery-mobile-logo-03.png"/></div>
<div id="two">works</div>
JS:
$("#one").on("swiperight", function() {
alert("does not work");
});
$("#two").on("swiperight", function() {
alert("works");
});
【问题讨论】:
标签: javascript jquery html css jquery-mobile