在phonegap android中,jquery移动按钮状态保持活动状态
我在我的应用程序中创建了一个按钮,它工作正常,但问题是当我按下按钮时,它会改变颜色,并在执行操作后保持活动状态。我正在使用jquery.mobile-1.3.1.min.css 以下是按钮的代码:在phonegap android中,jquery移动按钮状态保持活动状态,android,jquery-mobile,cordova,Android,Jquery Mobile,Cordova,我在我的应用程序中创建了一个按钮,它工作正常,但问题是当我按下按钮时,它会改变颜色,并在执行操作后保持活动状态。我正在使用jquery.mobile-1.3.1.min.css 以下是按钮的代码: <a href="index.html" class="camerabtn" data-role="button" data-icon="camerabtn" data-iconpos="top" data-inline="true" onClick="capturePhoto();">&
<a href="index.html" class="camerabtn" data-role="button" data-icon="camerabtn" data-iconpos="top" data-inline="true" onClick="capturePhoto();"></a>
请看我对这个问题的解决方案。终于修好了!:) 您不应该在jQuery Mobile中使用
.ready
。删除它,看看问题是否依然存在。嘿,奥马尔,谢谢你的回复,实际上问题出在css中,所以我只是删除了不需要的行,知道它工作正常。
$(document).ready(function () {
$('a').bind('click', function() {
setTimeout("$('a').removeClass('ui-btn-active')", 250);
});
});