0

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");

2 Answers 2

2

does this work?

$(':jqmData(role=navbar)').html(str).navbar();
Sign up to request clarification or add additional context in comments.

1 Comment

I was able to do it by removing the <nav data-role="navbar"> altogether and then reinserting it again with a $('header').trigger('create');
1

I know this is a little late but it worked for me. Try doing the .trigger('create') on the parent of the navbar element

1 Comment

Never too late @thedjaney. I'll try that solution the next time I'm in the hood.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.