/ Published in: PHP

This code will walk all elements from a given selector.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function doStuff(child, type) { if(typeof type !== 'undefined' && type != ""){ /** HERE **/ } } function walk(children){ if (typeof children == "undefined" || children.size() === 0) { return; } var child = $(this); if (child.children().size() > 0) { walk(child.children()); } doStuff(child, this.type); }); } walk($("#ka-registration-vital-information-form .participant"));
Comments
