Ext JS - Learning Center

Manual:Core:DomQuery

From Learn About the Ext JavaScript Library

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 14,097 times.