Reputation: 6973
Do I use the jQuery way? Or jQuery Mobile also provides functions to manipulate the DOM?
Upvotes: 0
Views: 1046
Reputation: 13297
Yes, you use standard jQuery techniques for DOM manipulation.
http://jquerymobile.com/demos/1.0rc1/docs/about/intro.html says:
jQuery’s mobile strategy can be summarized simply: A unified user interface system that works seamlessly across all popular mobile device platforms, built on the rock-solid jQuery and jQuery UI foundation. Focused on a lightweight codebase built on progressive enhancement with a flexible, easily themeable design.
Upvotes: 0
Reputation: 83408
jQuery Mobile includes jQuery so you do it in jQuery way.
Also note that jQuery Mobile does not generate final DOM until the page init events are called:
http://jquerymobile.com/test/docs/api/events.html
Note separate events for pages loaded using AJAX (on by default)
Upvotes: 2