title: jQuery conditional: if div has a particular ID, add class to another div
body: <p>I am trying to get a jQuery conditional to apply a class to this particular element –  – when another element contains a particular ID. Here's what I have so far:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(document).ready(function() {
  if( $('.container-fluid').hasId('europe') === true ) 
  {
   $('controlBar_playerVideo1').addClass('darkcontrols');
  }
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>Here's the live site: <a href="http://fsa.space/" rel="nofollow">http://fsa.space/</a></p>
  
  <p>When I add the script above to the footer I get an "undefined is not a function" error in the console. I should mention I am a total jQuery novice (which should be abundantly apparent).</p>
  
  <p>I would be grateful if someone could provide pointers to achieve this.</p>