title: jQuery addClass only add the class for the first element
body: <p>I want to add a class to all elements which have a defined class name. </p>
  
  <p>There is my code:</p>
  
  <pre><code>$(settings.slidesPlaceholder + ' ' + settings.slideIdentifier)
          .removeClass('active-slide')
          .addClass('inactive-slide');
  </code></pre>
  
  <p>But the issue is that the class is added only for the first element, but is removed from all elements. </p>