joeltonnberg
0
Newbie Poster
Recommended Answers
Jump to PostYou can perform loop on the specified element's, like this:
function pageLoad() { var elem = document.getElementsByTagName("div"); // any reference that you can provide for ( var x = 0; x < elem.length; x++ ) { collapseAll($('myvar_'+x)); } }
All 3 Replies
essential
84
Posting Shark
Featured Poster
joeltonnberg
0
Newbie Poster
essential
84
Posting Shark
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.