jQuery.fn.showTagInfo = function(){
var tags = this.map( function(){
return this.tagName + ( this.id ? "#" + this.id : "" );
$("body").append( "<br>" + tags.join("<br>") + "<br>" );
$("ul li:nth-child(2)").showTagInfo();
$("ul li:nth-child(odd)").showTagInfo();
$("#n1 li:nth-child(3n)").showTagInfo();
$("li.c:nth-child(even)").showTagInfo();