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

php - How to filter values fetched from database on the basic of comma included? -

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

c# - Add Image in a stackpanel based on textbox input -