Refresh a section after adding HTML dynamically to jquery mobile [duplicate]

update

As of jquery mobile beta2 you trigger an event – .trigger('create')

FAQ updated: http://demos.jquerymobile.com/1.3.2/faq/injected-content-is-not-enhanced.html

This is deprecated:

use .page() function.

I suggest:

  1. empty the div you populate
  2. create a new div inside
  3. populate the new div
  4. call .page() on that new div

Leave a Comment