The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS To select a specific parent tag.

  • This topic is empty.
Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
  • #114100

    @Yong: you’ll need to load a jQuery library and then call the code after the page has loaded. I could give you a step-by-step manual but I recommend you check out a tutorial at, so you’d know what you’re doing.

    : see what you mean, but I’ve had situations where I really needed to select a parent element if the child element had some class or other condition. Can’t remember what it was exactly, but just saying that it does happen sometimes! ;)


    @Yong Try this:


    I agree with @Paulie_D. If you can share a bit more information, I’m sure we can find a way to do what you want using the anchor instead of the list-item. Otherwise, I would suggest using a pure JS solution. Calling the entire jQuery library just for this is overkill.

Viewing 3 posts - 16 through 18 (of 18 total)
  • The forum ‘CSS’ is closed to new topics and replies.