Reputation: 43
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
Reputation: 3512
Just use trigger("create")
http://jsfiddle.net/eLENj/101/
Read more: http://jquerymobile.com/test/docs/pages/page-scripting.html
Upvotes: 8