I want to create a new element div inside a container..something like:
Code:
Ext.DomHelper.append('.parentbody', {tag: 'div', cls: 'new-div-cls', id: 'new-div-id'});
In the dom it will look like:
Code:
<div class="parentbody">
                 <div id="new-div"></div>
              </div>

however im unable to append the child using a class name. I know there are ways out to do with "id"? Can someone help with the syntax to append new created node?

Thanks