开发者

How can I generate elements after page load with jQuery Mobile Alpha 3?

开发者 https://www.devze.com 2023-04-06 01:00 出处:网络
I\'m creating some collapsibles after the page is loaded via ajax/json. The problem is that jQuery Mobile has already loaded开发者_开发百科, so the added classes and elements aren\'t created.

I'm creating some collapsibles after the page is loaded via ajax/json. The problem is that jQuery Mobile has already loaded开发者_开发百科, so the added classes and elements aren't created.

In Beta 3, I guess I could just use .trigger('create') and it would fix this for me, however that wasn't around in Alpha 3.

How can I go about fixing this?

Thanks!


I'm with Phil, you should definitely upgrade.

However, if this is out of the question for you, try the page() method, see

Jquery Mobile: updating a form more than once

0

精彩评论

暂无评论...
验证码 换一张
取 消