title: Remove Class using Javascript inside of PHP
body: <p>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: <a href="https://stackoverflow.com/questions/5025326/how-can-i-insert-javascript-in-php">How can I insert javascript in php?</a> and <a href="https://stackoverflow.com/questions/28570852/removeclass-addclass-when-page-load">RemoveClass AddClass When Page Load</a> to help me come up with the following solution:</p>
  
  <pre><code>&lt;? php echo '&lt;script type=\"text/javascript\"&gt;
          $(document).ready(function() {
           $(\"section#main-content\").removeClass(\"trans-header\");
          });&lt;/script&gt;';
  ?&gt;
  </code></pre>
  
  <p>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: <a href="http://7a9.007.myftpupload.com/contact/" rel="nofollow noreferrer">http://7a9.007.myftpupload.com/contact/</a>)</p>