If you want to update a widget that has already been initialized, you can update each view of the widget using the corresponding function:
$('.ui-btn').button('refresh');
, .ui-btn , , , .
: http://jquerymobile.com/demos/1.1.0-rc.1/docs/buttons/buttons-methods.html
, , 'refresh' .trigger('create'):
$('[data-role="button"], button, input[type="button"], input[type="submit"]').not('.ui-btn').button();//or .trigger('create');
, .not('.ui-btn'), . , , ( , , ).
Update
HTML , DOM:
$.ajax({
...
success : function (serverResponse) {
var $out = $(serverResponse);
$out.find('a').button();
$('body').append($out);
}
});
.buttonMarkup() : http://jquerymobile.com/demos/1.1.0-rc.1/docs/buttons/buttons-options.html