title: jQuery change css of given class within an id
body: <pre><code>$('#slider1 .rangeslider__handle').css("border", "4px solid #99cc44");
  </code></pre>
  
  <p>That syntax doesn't work for changing the border of only that class within the given id.
  I tried also</p>
  
  <pre><code>$.fn.hasAncestor = function(a) {
      return this.filter(function() {
          return !!$(this).closest(a).length;
      });
  };
  $('.rangeslider__handle').hasAncestor('#slider1').css("border", "4px solid #99cc44").change();
  </code></pre>
  
  <p>and</p>
  
  <pre><code>$('#slider1').find('.rangeslider__handle').css("border", "4px solid #99cc44");
  </code></pre>