I am using jQuery Mobile. Currently I am dynamically adding a custom header using javascript to the html file. I would like to add a jQuery mobile header using javascript, by appending it to the DOM. Adding this to the .html code directly is no option.
How could this be done?
Answer:
-> Load the js file that has the document ready function for creating the DOM elements before the jquery mobile js.
-> Simply change this in the header of the .html file.