jQuery("pre.sf-dump").each(function() { jQuery(this).find("a.sf-dump-toggle:gt(0)").each(function(i, a){ a.click(); }); })