<a href=\"#\">a link</a>, <a href=\"#\">another</a>,
$('a').click(function() { $(this).fadeOut(300); return false });
<a href=\"#\">a link</a><span class=\"comma\">,</span> <a href=\"#\">another</a>
Say I have the following markup:
and this jQuery:
$('a').click(function() {$(this).fadeOut(300);
return false
});
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?
Thanks,
Oskar
Now you can target it with $(".comma")
Thank you! Now I've got a sweet ass module for clicking tags to posts ;-)