Manual:Core:DomQuery (Legacy)

This version of our Learning Center is unmaintained.
This article may be out-of-date or contain incorrect information.
Please visit the new Sencha Learning Center for up-to-date material.

Go to the new Sencha Learning Center

From Sencha - Learn

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()
This page was last modified on 15 July 2008, at 14:26. This page has been accessed 23,141 times.