Jquery Mobile Disable Enhancement On Certain Tags?
I don't want the styles for the tag. I've found threads like this How to 'turn off' jQuery Mobile's styling of
Solution 1:
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";
});
Solution 2:
To disable enhancement of a select component you can add data-role='none'
, tested on jQuery Mobile 1.4.2.
Post a Comment for "Jquery Mobile Disable Enhancement On Certain Tags?"