Forcing jQuery Mobile to re-evaluate styles/theme on dynamically inserted content

前端 未结 7 984
感情败类
感情败类 2020-11-28 04:40

Objective: Load HTML content via $.ajax, insert it into the DOM, have jQuery Mobile apply theme styles to it.

Problem:

7条回答
  •  鱼传尺愫
    2020-11-28 05:24

    As an update to the answers provided. As of v1.45 you can select your content and use .enhanceWithin() to enhance the child elements.

    http://api.jquerymobile.com/enhanceWithin/

提交回复
热议问题