How can I insert an element (<ui>) dynamically with some formatting inside an already existing element?
E.g.:
$("#contentDiv").append('<ui id="contentUi">');
$("#contentUi").css({ "text-align": "center", "list-style-type": "none"});
$("#contentDiv").css({ "text-decoration": "none","font-size":" 1.30em","font-weight":
"bold"});
Here #contentDiv is the id of an element <div id="contentDiv">, and I'm appending a new element <ui> to it.
Line 3 is working perfectly fine but line 2 has no effect on screen.