title: How do I add a jQuery script to WordPress?
body: <p>I am trying to use the following script in wordpress without success. Please help me how to adapt it to Warpeders and where should I put it to make it work.</p>
  <pre><code>$(‘table tr:nth-child(n+1):nth-child(-n+7’).addClass(‘active’);
  $(‘#dates-load’).on(‘click’, function(e) {
  e.preventDefault();
  var $rows = $(‘.dates-prices-table tr’);
  var lastActiveIndex = $rows.filter(‘.active:last’).index();
  $rows.filter(‘:lt(‘ + (lastActiveIndex + 5) + ‘)’).addClass(‘active’);
  });
  </code></pre>