O'Reilly logo

jQuery Mobile Web Development Essentials by Andy Matthews, Raymond Camden

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

jQuery widget and form utilities

We've mentioned, numerous times, how jQuery Mobile automatically updates various items and supports things like lists and collapsible content. One of the things you may run into, however, is trying to get jQuery Mobile to work with content loaded after the page is rendered. So, for example, imagine a list view that has data added to it via some JavaScript code. Listing 8-4 demonstrates a simple example of this. It has a listview with a few items in it, but also a form by which a person could add new entries:

Listing 8-4: test5.html <!DOCTYPE html> <html> <head> <title>List Updates</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://code.jquery.com/mobile/latest/jquery.mobile.min.css" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required