0

I have a navigation bar and I've been able to fix its behaviour as I like with this jQuery code:

$(document).bind('mobileinit', function () {
        $.mobile.activeBtnClass = 'unused';
    });

But this way I disable ALL the buttons in my webapp...

I'd like to aim it to a specific set of buttons.

How can I achieve that?

I'd do:

$(document).bind('mobileinit', function () {
        $(".myclass").activeBtnClass = 'unused';
    });

or

$(document).bind('mobileinit', function () {
        $(".myclass").mobile.activeBtnClass = 'unused';
    });

But this won't work...

What is wrong?

4

1 回答 1

0

你的建议很有趣,roXon,但是因为我想让用户了解他在使用我的 web 应用程序时的位置。

幸运的是 jQuery 的人考虑到了这种问题,我已经能够很容易地解决这个问题,添加 class="ui-btn-active ui-state-persist" 所以我的按钮。

不管怎么说,还是要谢谢你!

于 2013-04-21T23:31:42.063 回答