<ul>
  <ul>
    <li> liste elemanı
      <span>w3tr</span>
    </li>
  </ul>
</ul>   
$("span").closest("ul").css({"color": "blue", "border": "2px solid yellow"});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. //cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js