I want to trigger a jQuery animation when content that I am inserting through the CSS pseudoelements :before:
and :after
is clicked. However, I'm not sure how to do this; my first guess, $(#id:before).click()
didn't work. Is this part of jQuery's functionality? If so, how would I select the before
/after
content?
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- jQuery add and remove delay
- Adding a timeout to a render function in ReactJS
- Include empty value fields in jQuery .serialize()
- Disable Browser onUnload on certain links?
jQuery does not support the CSS
:before
and:after
selectors.To select siblings, use.siblings()
and then filter from there.http://api.jquery.com/siblings/