title: Embed the Javasceipr code in Wordpress Not Work
body: <p>I'm trying to embed this code in the WordPress site:</p>
  <pre><code>$('table tr:nth-child(n+1):nth-child(-n+8)').addClass('active');
  
  $('#songs-load').on('click', function(e) {
   e.preventDefault();  
   var $rows = $('.songs-table tr');
   var lastActiveIndex = $rows.filter('.active:last').index();
   $rows.filter(':lt(' + (lastActiveIndex + 10) + ')').addClass('active');
   });
  
  $('#album-load').on('click', function(e) {
    e.preventDefault();  
    var $rows = $('.album-table tr');
    var lastActiveIndex = $rows.filter('.active:last').index();
    $rows.filter(':lt(' + (lastActiveIndex + 10) + ')').addClass('active');
  });
  </code></pre>
  <p>I tried to do it like this - wrap the code in script tags:</p>
  <pre><code>&lt;script&gt;$('table tr:nth-child(n+1):nth-child(-n+8)').addClass('active');
  
  $('#songs-load').on('click', function(e) {
   e.preventDefault();  
    var $rows = $('.songs-table tr');
   var lastActiveIndex = $rows.filter('.active:last').index();
   $rows.filter(':lt(' + (lastActiveIndex + 10) + ')').addClass('active');
   });
  
  $('#album-load').on('click', function(e) {
   e.preventDefault();  
   var $rows = $('.album-table tr');
  var lastActiveIndex = $rows.filter('.active:last').index();
   $rows.filter(':lt(' + (lastActiveIndex + 10) + ')').addClass('active');
    });
    &lt;/script&gt;
  </code></pre>
  <p><strong>BUT It does not work and I guess it should be done another way. Can anyone write me how to embed this code so that it will work in WordPress?</strong></p>