I have a the following static div:
<body>
<div id="div1"></div>
....
I want to add a div with id "div1_1" within div1 dynamically by using dojo. How can I do it?
I have a the following static div:
<body>
<div id="div1"></div>
....
I want to add a div with id "div1_1" within div1 dynamically by using dojo. How can I do it?
dojo.html.set(dojo.byId("div1"), "<div id='div1_1'></div>");