开发者

Using Html Id in ExtJS4

开发者 https://www.devze.com 2023-03-22 02:17 出处:网络
I am new to 开发者_开发技巧ExtJS4.May i know how to get html Id in ExtJS4.If you have a sample please share with me.In ExtJS4 you can get dom node by it\'s id using:

I am new to 开发者_开发技巧ExtJS4.May i know how to get html Id in ExtJS4.If you have a sample please share with me.


In ExtJS4 you can get dom node by it's id using:

Ext.DomQuery.selectNode('#example_div');

or using oldschool js:

document.getElementById('example_div');


You can try

var elDom = Ext.getDom('example_div');

I have not used it but found it in the docs.

0

精彩评论

暂无评论...
验证码 换一张
取 消