I'm having trouble using fancybox on an element with this code:
$(this).parent().parent().parent().find('.comments').fancybox();
Is it not feasible? Could it be because it's a class and not an id?
I have multiple rows of items, so assigning individual ids is not practical.
Any suggestions? Below is the complete JS code (show() functions properly, but fancybox() doesn't):
$(".action").click(function(e) {
e.preventDefault();
$(this).parent().parent().parent().find('.comments').show();
return false;
});