JavaScript
Run Code
Open in Fiddle
document.body.innerHTML = '<div id="foo"></div>'; console.log(Ext.get('foo')); document.body.innerHTML = '<div id="foo"></div>'; console.log(Ext.get('foo'));