Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 957
Paul Nicolas Avatar asked Feb 21 '23 03:02

Paul Nicolas


1 Answers

Just use trigger("create")

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

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

like image 105
r0m4n Avatar answered May 01 '23 19:05

r0m4n