Say I have the following markup:
and this jQuery:
When you click the link it’ll fade out, so far so good. What if I want to include the following "," (comma) as well? How do I target that?
You can’t target anything unless it has some tag of some kind around it in order to target.
Now you can target it with $(".comma")
Aha, that was what I was afraid of. I ended up using your method with $(this).next().fadeOut(); Works fine.
Thank you! Now I’ve got a sweet ass module for clicking tags to posts ;-)
You must be logged in to reply to this topic.