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: This does not work because 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 $ ("body") ('div data-role = "page" & gt; & lt; div data-roles = "Content" & gt; Home & lt; / div & gt; '); $ ("Body") collapsibleset () .;
data-role = "page" Has
none of
display .
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
Post a Comment