SyntaxFix
Write A Post
Hire A Developer
Questions
You can't use $(this) since jQuery doesn't know what it is there. You seem to be overcomplicating things. You can do $('#content h1.aktiv').hide(). There's no reason to test to see if the class exists.
$(this)
$('#content h1.aktiv').hide()