Revision: 26883
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 13, 2010 15:35 by linusx
Initial Code
function doStuff(child, type) { if(typeof type !== 'undefined' && type != ""){ /** HERE **/ } } function walk(children){ if (typeof children == "undefined" || children.size() === 0) { return; } children.each(function(){ var child = $(this); if (child.children().size() > 0) { walk(child.children()); } doStuff(child, this.type); }); } walk($("#ka-registration-vital-information-form .participant"));
Initial URL
Initial Description
This code will walk all elements from a given selector.
Initial Title
Walk all DOM elements with jQuery
Initial Tags
jquery
Initial Language
PHP