Reputation: 47605
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");
Upvotes: 0
Views: 1550
Reputation: 1126
I know this is a little late but it worked for me. Try doing the .trigger('create') on the parent of the navbar element
Upvotes: 1
Reputation: 85308
does this work?
$(':jqmData(role=navbar)').html(str).navbar();
Upvotes: 2