SyntaxFix
Write A Post
Hire A Developer
Questions
You could try this:
if($(this).is('h1')){ doStuff(); }
See the docs for more on is().