var mynewhtml =
+ '<link rel="stylesheet" type="text/css" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css"/>'
+ '<div id="tabs">'
+ '<ul>'
+ '<li><a href="#tabs-1">Tab 1</a></li>'
+ '<li><a href="#tabs-2">Tab 2</a></li>'
+ '<li><a href="#tabs-3">Tab 3</a></li>'
+ '</ul>'
+ '<div id="tabs-1">'
+ '<p>Lalalala</p>'
+ '</div>'
+ '<div id="tabs-2">'
+ '</div>'
+ '<div id="tabs-3">'
+ '</div>'
+ '</div>'
$(mynewhtml).appendTo("body");
So I have a wegpage, but I can't alter the html, I can only add html via Jquery/javascript. Adding the html isn't a problem, but how can I use an external style sheet to set the style of my newly added html?
Thank you.
htmlbut you can edit thejavascript?