html - Jquery mobile - update button style -
if add items listview, you'll need call refresh() method on update styles , create nested lists added. example:
$('#mylist').listview('refresh');
what code need if add buttons page , refresh style.
this one:
$('buttonid').button();
working example: http://jsfiddle.net/gajotres/m4rjz/
there's function called buttonmarkup(), used change styled button properties, example change button icon:
$('buttonid').buttonmarkup({ icon: "star" });
read more in other article: jquery mobile: markup enhancement of dynamically added content
and link official documentation.
Comments
Post a Comment