PDA

View Full Version : Selecting all checked checkboxes of a class



After2050
30 Nov 2010, 5:30 AM
How can I select all the checkboxes that are checked and belong to a class say "class1" through DOM query?

-Dnana-

Condor
30 Nov 2010, 5:33 AM
Ext.select('input[type=checkbox].class1').each(function(el){
el.dom.checked = true;
});

ps. Are these checkboxes Ext components? In that case you shouldn't manipulate the dom this way!

After2050
30 Nov 2010, 10:21 PM
I'm trying something like this,


Ext.select('input[checked].class1')

But when the user changes the status of checkboxes the query is not returning the right values.