Select List Item only if it Doesn't Contain another List (and is top level)

/ Published in: CSS
Save to your folder(s)

Copy this code and paste it in your HTML
  1. $("ul.dropdown > li:not(:has('ul')) a").css({
  2. "background-image": "none",
  3. });

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.