SyntaxFix
Write A Post
Hire A Developer
Questions
Alternatively you could use:
if ($('#navigation a').is(".active")) { $(this).parent().addClass("active"); }