tropo test
Posts: 0
Joined: Wed Sep 04, 2013 12:06 pm

loop through all components on page

Dear All,

can you pls point me on how to loop through all objects (components) on a page?

TIA!

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

loop through all components on page

Hello!
Try next code:
pre$("[name=mobilecontainer1] >").each( function(e){
if (typeof e === "object") {
console.log(e);
})/prewhere:
"mobilecontainer1" - name of Mobile Container from your page
"console.log(e);" - just example. Any JS for elements processing.

tropo test
Posts: 0
Joined: Wed Sep 04, 2013 12:06 pm

loop through all components on page

awesome!

Return to “Issues”