I develop drag'n'drop jquery mobile constructor. When jmobile core loaded it's override my css rules by adding some classes to different elements. How prevent this? I want apply transform after element dropped on my "canvas". How can I do this?
1 Answer
Perhaps adding data-role="none" as attribute will help?
http://jquerymobile.com/demos/1.0rc2/docs/forms/forms-all-native.html
6 Comments
Meliborn
I know about data-role="none", but which place I should add it?
Jorissu
"Adding the data-role="none" attribute to any form or button element tells the framework to not apply any enhanced styles or scripting. " Quoted from the jquermobile.com site link above.
Meliborn
Add this attr to each element? Oh my God. I try add this attr to <html>, but jmobile add his class "ui-mobile"
Jorissu
They solved that here: stackoverflow.com/questions/8959519/…
Meliborn
I read it. When I using $.mobile.autoInitializePage = false; there are 5 seconds when page not visible (white screen) and after that, html get "ui-mobile" class
|