What’s the equivalent of $('#id.class:input') in Ext?
Or is there?
What’s the equivalent of $(‘#id.class:input’) in Ext ? Or is there?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think you’re looking for
Ext.query('#id.class:input')but whether Ext’s CSS selector engine is robust enough to handle that particular request, I’m not sure off the top of my head. Probably, it is. In any case, the documentation says it returns an array of DOM elements that match your selector.Edit: o.k.w. is right, too.
queryreturns raw DOM elements, whileselectreturns aCompositeElement, which is closer to the way jQuery does things.