javascript - Get all elements of a specific type using ExtJS -


Hello I have been using JQuery for a while. I need to get the ID of the checked elements. All of my check boxes are in the form of rows sitting inside a container, and I want to get the ID of all the checkboxes that have been checked.

I

  $ ("# container input: checkbox")   

to get all the checkboxes in that container, and After that, it will be investigated as to who has been investigated.

To do this, in EXGES, I am using the "gate" method, and

  Ext.get ('input')   

does everything that gives me input items, but I still have to check whether they are of the "checkbox" type, is there any way that I can only get the checkbox elements of the domain?

A function equal to the jQuery selector is either Ext.query , or < Code> Ext.DomQuery.selectNode .

Ext.Query does the same function as JQuery ().

In your case, you can try it:

  Ext.query ("# ​​container input: checked")   

Of course, this is only the DOM value instead of the O extension component.

Comments