I'm creating a string that is an unordered list, and I'd like to replace my navbar.
But I lose my formatting when I say:
$(':jqmData(role=navbar)').html(str).trigger("create");
does this work?
$(':jqmData(role=navbar)').html(str).navbar();
I know this is a little late but it worked for me. Try doing the .trigger('create') on the parent of the navbar element