javascript - Adding DIV dynamically to the BODY using jQuery mobile -


I try to add a DIV to the body, but I received an empty page. This is mine.

In this example I dropped the HTML because it is working fine.

code: $ ("body") ('div data-role = "page" & gt; & lt; div data-roles = "Content" & gt; Home & lt; / div & gt; '); $ ("Body") collapsibleset () .;

This does not work because data-role = "page" Has none of display .
Enter image details here

I do not know if this CSS comes from , But if you disable it like "home" appears

edit This CSS is coming from jquery mobile. You can either manually data-roll = "page" to display: block; For CSS, you can set CSS to overwrite jquery in your stylesheet, or you do not even need to assign it in HTML.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -