var dh=Ext.domHelper;
var spec={
tag:'select', children: [
{tag: 'option', value:'rptNm', selected: 'true', html:'Report Number'},
{tag: 'option', value:'rptTitlTxt', html:'Report Title'},
{tag: 'option', value:'author', html:'Author'} ]
};
dh.append(tb, spec); // I am getting a javascript error at this line
'Undefined' is null or not an object
Please suggest a solution. Any other alternatives??
I am afraid but it has to be a DOM object,
Ext 1.1 provided such functionality by addDom method of Ext toolbar, I am sure they must have a way to do it in Ext 4 as well.