Paul Nicolas
Paul Nicolas

Reputation: 43

Add buttons into listview dynamically using jquery mobile

I have a code in jquery mobile that will add buttons dynamically in a listview. The problem is that when I add a button on listview dynamically the style of the button disappears.

Here's the code: http://jsfiddle.net/eLENj/98/

I've tried to use the .button("refresh") but doesn't work.

How to solve the problem?

Upvotes: 4

Views: 5524

Answers (1)

r0m4n
r0m4n

Reputation: 3512

Just use trigger("create")

http://jsfiddle.net/eLENj/101/

Read more: http://jquerymobile.com/test/docs/pages/page-scripting.html

Upvotes: 8

Related Questions