title: Javascript working on jsfiddle but not wordpress site?
body: <p>Link of site: 
  <a href="http://34.246.124.138/test/" rel="nofollow noreferrer">http://34.246.124.138/test/</a> </p>
  
  <p>The code works on JSfiddle but it's not working on my site. Is this a problem with my code or a theme I've used on my wordpress that is stopping it from working? I also have WP bakery installed within my site. </p>
  
  <p>JS fiddle - <a href="http://jsfiddle.net/vwgeypfL/" rel="nofollow noreferrer">http://jsfiddle.net/vwgeypfL/</a> </p>
  
  <p>The code- </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>jQuery('#preference, #style').on('change', function(){
   var preference = jQuery('#preference');
    var style = jQuery('#style');
   if ( preference.prop('selectedIndex') &gt; 0 &amp;&amp; style.prop('selectedIndex') &gt; 0 ) {
  jQuery('.result.active').removeClass('active');
  jQuery('.result').filter('[data-preference="' + preference.val() + '"][data-style="' + style.val() + '"]').addClass('active');
  }
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.result {display:none;}
  .result.active {display:block;}</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;head&gt;&lt;style&gt;.result {display:none;}
  .result.active {display:block;}&lt;/style&gt;
   &lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"&gt;&lt;/script&gt;&lt;/head&gt;
  &lt;body&gt;&lt;/body&gt;
  &lt;p&gt;What is your astrology sign?&lt;/p&gt;
  &lt;select id="preference"&gt;
      &lt;option value="select"&gt;select&lt;/option&gt;
      &lt;option value="aries"&gt;Aries&lt;/option&gt;
      &lt;option value="taurus"&gt;Taurus&lt;/option&gt;
      &lt;option value="gemini"&gt;Gemini&lt;/option&gt;
      &lt;option value="cancer"&gt;Cancer&lt;/option&gt;
      &lt;option value="leo"&gt;Leo&lt;/option&gt;
      &lt;option value="virgo"&gt;Virgo&lt;/option&gt;
      &lt;option value="libra"&gt;Libra&lt;/option&gt;
      &lt;option value="scorpio"&gt;Scorpio&lt;/option&gt;
      &lt;option value="sagittarius"&gt;Sagittarius&lt;/option&gt;
      &lt;option value="capricon"&gt;Capricon&lt;/option&gt;
      &lt;option value="aquarius"&gt;Aquarius&lt;/option&gt;
      &lt;option value="pisces"&gt;Pisces&lt;/option&gt;
  &lt;/select&gt;
  
  
  &lt;select id="style"&gt;
      &lt;option value="select"&gt;select&lt;/option&gt;
      &lt;option value="sun"&gt;Sun&lt;/option&gt;
      &lt;option value="moon"&gt;Moon&lt;/option&gt;
  &lt;/select&gt;
  
  
  &lt;div class="result" data-preference="aries" data-style="sun"&gt;
  &lt;p&gt;Your Song Is&lt;/p&gt;
  &lt;h3&gt;Cosmic Wind&lt;/h3&gt;
  &lt;h6&gt;“Creation, Preservation and Destruction, Breathe, Open your arms, fall all over again.” &lt;/h6&gt;
  &lt;/div&gt;
  
  &lt;div class="result" data-preference="aries" data-style="moon"&gt;
  &lt;p&gt;Your Song Is&lt;/p&gt;
  &lt;h3&gt;Can I See It&lt;/h3&gt;
  &lt;h6&gt;“Sunlight’s Out Gonna Burn to the ground” &lt;/h6&gt;
  &lt;/div&gt;
  
  &lt;div class="result" data-preference="taurus" data-style="sun"&gt;
  &lt;p&gt;Your Song Is&lt;/p&gt;
  &lt;h3&gt;When I Told You I Loved You&lt;/h3&gt;
  &lt;h6&gt; “When I told you I loved you, I was for real."&lt;/h6&gt;&lt;/div&gt;
  
  &lt;div class="result" data-preference="taurus" data-style="moon"&gt;
  &lt;p&gt;Your Song Is&lt;/p&gt;
  &lt;h3&gt;Into Me&lt;/h3&gt;
  &lt;h6&gt; “Intimacy, Sexually, Emotionally, Financially, Spiritually, get into me.”  &lt;/h6&gt;&lt;/div&gt;
  
  &lt;div class="result" data-preference="gemini" data-style="sun"&gt;
  &lt;p&gt;Your Song Is&lt;/p&gt;
  &lt;h3&gt;Honey Dew&lt;/h3&gt;
  &lt;h6&gt; “Open Mind, Look I find something in the rain as it falls.”   &lt;/h6&gt;&lt;/div&gt;
  
  &lt;div class="result" data-preference="gemini" data-style="moon"&gt;
  &lt;p&gt;Your Song Is&lt;/p&gt;
  &lt;h3&gt;Reminisce&lt;/h3&gt;
  &lt;h6&gt; “Sometimes I reminisce about you, things change every minute every season.” &lt;/h6&gt;&lt;/div&gt;
  
  &lt;div class="result" data-preference="cancer" data-style="sun"&gt;
  &lt;p&gt;Your Song Is&lt;/p&gt;
  &lt;h3&gt;Can I See It&lt;/h3&gt;
  &lt;h6&gt; “Sunlight’s Out Gonna Burn to the ground” &lt;/h6&gt;&lt;/div&gt;
  
  &lt;div class="result" data-preference="cancer" data-style="moon"&gt;
  &lt;p&gt;Your Song Is&lt;/p&gt;
  &lt;h3&gt;Different Planet&lt;/h3&gt;
  &lt;h6&gt; “Tell me how I feel so deep?” &lt;/h6&gt;
  &lt;/div&gt;
  
  &lt;div class="result" data-preference="Leo" data-style="Sun"&gt;
  &lt;p&gt;Your Song Is&lt;/p&gt;
  &lt;h3&gt;Hit The Ceiling&lt;/h3&gt;
  &lt;h6&gt; “We ain’t got no limit, and we don’t let go”&lt;/h6&gt;&lt;/div&gt;
  
  &lt;div class="result" data-preference="Leo" data-style="Moon"&gt;
  &lt;p&gt;Your Song Is&lt;/p&gt;
  &lt;h3&gt;When I Told You I Loved You&lt;/h3&gt;
  &lt;h6&gt; “When I told you I loved you, I was for real."&lt;/h6&gt;&lt;/div&gt;
  
  &lt;div class="result" data-preference="virgo" data-style="sun"&gt;
  &lt;p&gt;Your Song Is&lt;/p&gt;
  &lt;h3&gt;Anyway You Want To&lt;/h3&gt;
  &lt;h6&gt; “Anyway you want to we will go”  &lt;/h6&gt;&lt;/div&gt;
  
  &lt;div class="result" data-preference="virgo" data-style="moon"&gt;
  &lt;p&gt;Your Song Is&lt;/p&gt;
  &lt;h3&gt;Never Before&lt;/h3&gt;
  &lt;h6&gt; “So what’s the move, I’m in the mood” &lt;/h6&gt;&lt;/div&gt;
  
  &lt;div class="result" data-preference="Libra" data-style="sun"&gt;
  &lt;p&gt;Your Song Is&lt;/p&gt;
  &lt;h3&gt;So Long&lt;/h3&gt;
  &lt;h6&gt; “You and me both know we needed to grow.“&lt;/h6&gt;
  &lt;/div&gt;
  
  &lt;div class="result" data-preference="Libra" data-style="moon"&gt;
  &lt;p&gt;Your Song Is&lt;/p&gt;
  &lt;h3&gt;Honey Dew&lt;/h3&gt;
  &lt;h6&gt; “Open Mind, Look I find something in the rain as it falls.”   &lt;/h6&gt;&lt;/div&gt;
  
  &lt;div class="result" data-preference="Scorpio" data-style="sun"&gt;
  &lt;p&gt;Your Song Is&lt;/p&gt;
  &lt;h3&gt;Sexy Please&lt;/h3&gt;
  &lt;h6&gt; “Can I be sexy please?”&lt;/h6&gt;&lt;/div&gt;
  
  &lt;div class="result" data-preference="Scorpio" data-style="moon"&gt;
  &lt;p&gt;Your Song Is&lt;/p&gt;
  &lt;h3&gt;So Long&lt;/h3&gt;
  &lt;h6&gt; “You and me both know we needed to grow.“&lt;/h6&gt;&lt;/div&gt;
  
  &lt;div class="result" data-preference="sagittarius" data-style="sun"&gt;
  &lt;p&gt;Your Song Is&lt;/p&gt;
  &lt;h3&gt;Anyway You Want To&lt;/h3&gt;
  &lt;h6&gt; “Anyway you want to we will go”  &lt;/h6&gt;&lt;/div&gt;
  
  &lt;div class="result" data-preference="sagittarius" data-style="moon"&gt;
  &lt;p&gt;Your Song Is&lt;/p&gt;
  &lt;h3&gt;The Wave&lt;/h3&gt;
  &lt;h6&gt; “Everybody’s moving through the wave, let’s go.”&lt;/h6&gt;&lt;/div&gt;
  
  &lt;div class="result" data-preference="capricorn" data-style="sun"&gt;
  &lt;p&gt;Your Song Is&lt;/p&gt;
  &lt;h3&gt;Into Me&lt;/h3&gt;
  &lt;h6&gt; “Intimacy, Sexually, Emotionally, Financially, Spiritually, get into me.”  &lt;/h6&gt;&lt;/div&gt;
  
  &lt;div class="result" data-preference="capricorn" data-style="moon"&gt;
  &lt;p&gt;Your Song Is&lt;/p&gt;
  &lt;h3&gt;Western World&lt;/h3&gt;
  &lt;h6&gt;  “We should know what we’re breathing for, sooner we let it go, like a tree, we grow, we grow.” &lt;/h6&gt;&lt;/div&gt;
  
  &lt;div class="result" data-preference="aquarius" data-style="sun"&gt;
  &lt;p&gt;Your Song Is&lt;/p&gt;
  &lt;h3&gt;No Rules&lt;/h3&gt;
  &lt;h6&gt; “You tell me all of the things I gotta do, and I’ll let you know if I feel the same or if we’re through.”&lt;/h6&gt;&lt;/div&gt;
  
  &lt;div class="result" data-preference="aquarius" data-style="moon"&gt;
  &lt;p&gt;Your Song Is&lt;/p&gt;
  &lt;h3&gt;Different Planet&lt;/h3&gt;
  &lt;h6&gt;“Tell me how I feel so deep?”  &lt;/h6&gt;&lt;/div&gt;
  
  &lt;div class="result" data-preference="pisces" data-style="sun"&gt;
  &lt;p&gt;Your Song Is&lt;/p&gt;
  &lt;h3&gt;The Wave&lt;/h3&gt;
  &lt;h6&gt; “Everybody’s moving through the wave, let’s go.”&lt;/h6&gt;
  &lt;/div&gt;
  
  &lt;div class="result" data-preference="pisces" data-style="moon"&gt;
  &lt;p&gt;Your Song Is&lt;/p&gt;
  &lt;h3&gt;Cosmic Wind&lt;/h3&gt;
  &lt;h6&gt;“Creation, Preservation and Destruction, Breathe, Open your arms, fall all over again.” &lt;/h6&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>