Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent jQuery mobile's automatic page styling?

jQuery mobile automatically adds classes to all elements on my page on loading... this really messes up the jQuery UI widgets I have on the page. Is there any way to prevent jQuery mobile from automatically adding classes to my HTML elements? I only wan't some of the jQuery mobile widgets on my page, and I want to specify them explicitly.

like image 867
m0s Avatar asked Jan 22 '12 06:01

m0s


Video Answer


1 Answers

You can ask jquery mobile not to touch your widget by putting the attribute below:

data-role="none"
like image 50
Liam Avatar answered Dec 31 '22 05:12

Liam