Eavesdrop on jQuery (works like Ruby's Object#tap). Example: Want to know what elements this affects? $('.foo').add('.bar').hide(); Tap into it!: $('.foo').add('.bar').tap(function() { console.log(this); }).hide();