I'm trying to remove a class of a certain element (#main-content) on a single page using Javascript. The page was written in PHP, but from what I can find, Javascript is the easiest method for removing the class. I referenced the post: How can I insert javascript in php? and RemoveClass AddClass When Page Load to help me come up with the following solution:
<? php echo '<script type=\"text/javascript\">
$(document).ready(function() {
$(\"section#main-content\").removeClass(\"trans-header\");
});</script>';
?>
I validated this code and placed it at the top of my page but it doesn't seem to work. What might I be missing? (Also if it helps, here is the page I am trying to apply the code to: http://7a9.007.myftpupload.com/contact/)