$('article *',document.body).click(
function(e){
e.stopPropagation();
var selectedElement = this.tagName;
$(selectedElement).css('border','1px dotted #333');
}
);
Demo on JS Bin , although I used a universal selector (since I posted only a couple of lists (one from the olother a ul).
, @Peter Ajtai, JS Bin -, :
, tagName? var selectedElement = this.tagName;. e.stopPropagation(), .