3 ms·
Something like this would work: jQuery.fn.logCurrent = function (title) { console.log(title, $.makeArray(this).join(', ')); return $(this);
by shutter 18y ago
Something like this would work:
jQuery.fn.logCurrent = function (title) {
console.log(title, $.makeArray(this).join(', '));
return $(this);
};
But it depends what you want to log for each element. I think Firebug's output would give clickable links in that case, but you could alternatively cherrypick class names or the like.