> $("h1, h2, h3").doSomething();
> How can one identify which tag is currently having something done to it?
Try the tagName property of the DOM element:
$("h1, h2, h3").each(function(){
alert(this.tagName);
});
> $("h1, h2, h3").doSomething();
> How can one identify which tag is currently having something done to it?
Try the tagName property of the DOM element:
$("h1, h2, h3").each(function(){
alert(this.tagName);
});