Will
Will

Reputation: 924

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

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!

Upvotes: 0

Views: 198

Answers (1)

Christoph Baudson
Christoph Baudson

Reputation: 1071

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

Upvotes: 1

Related Questions