PDA

View Full Version : Is there an Ext way to do this ?



lossendae
21 May 2011, 2:39 PM
With jQuery i could do:



$('.list li').eq(id).append('<span class=\"done\">Success blabla !</span>');


Now with Extjs i can do it like this:



elm = Ext.select('.list li').elements[id];
curr = elm.innerHTML;
elm.innerHTML = curr + '<span class=\"done\">Success blabla !</span>';


I'm pretty sure that there is a better way of doing it.
Is there a cleaner way to do this with Ext ?