SyntaxFix
Write A Post
Hire A Developer
Questions
$('.IsBestAnswer').addClass('bestanswer').removeClass('IsBestAnswer');
Case in method names is important, so no addclass.
addclass
jQuery addClass() jQuery removeClass()
addClass()
removeClass()