Ext JS - Learning Center

Manual:Core:DomQuery

From Learn About the Ext JavaScript Library

Revision as of 14:26, 15 July 2008 by OlleJonsson (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Summary: DOM Query
Author: Maxence Delannoy
Published: 07-29-2007
Ext Version: 1.1
Languages: en.png English cn.png Chinesekr.png Korean

DomQuery allows you to select elements on the page.

Some examples

Display the number of div elements on the current page.

alert(Ext.DomQuery.select('div').length);

Emphasize the 15th div element.

Ext.get(Ext.DomQuery.selectNode('div:nth(15)')).highlight()