• 2020-12-18 12:06

    There are few ways of disabling markup enhancement in jQuery Mobile but in your case there's only one single line solution:

    $(document).on('pagebeforeshow', '#index', function(){       
       $('a').removeClass('ui-link');
    });
    

    jsFiddle example: http://jsfiddle.net/Gajotres/L4KUT/

    Other solutions can be found in my other ARTICLE, to be transparent it is my personal blog. Or find it HERE. Search for the chapter called: Methods of markup enhancement prevention.

    There you will find a answer how to disable it on a selector level, unfortunately it only works on native form elements and a tag is not a native form element:

    $(document).bind('mobileinit',function(){
         $.mobile.page.prototype.options.keepNative = "select, input";
    });  
    
    0 讨论(0)
  • 提交回复
    热议问题