0

I need to change that element whose class CSS is:

.ac-container input:checked ~ article.ac-small

in jquery.

$(".ac-container input:checked .... missing part")

How do I select such element ?

4
  • The same syntax should work in jQuery. Commented Dec 13, 2013 at 15:15
  • It's the same: api.jquery.com/next-siblings-selector Commented Dec 13, 2013 at 15:15
  • 1
    That's called a selector, not a class. Commented Dec 13, 2013 at 15:16
  • 1
    Try it. Just try actually doing it. Commented Dec 13, 2013 at 15:20

1 Answer 1

3

jQuery supports the same selectors that CSS does, with a couple of obscure differences.
That selector will work fine.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.