Hiya,
I have the following code:
$(".perf-row").click(function(e) {
if (e.target.tagName.toLowerCase() == "a") {
pageTracker._trackPageview($(this).attr("rel"));
return true; //link clicked
} else {
window.open($(this).attr("rel"));return false;
}
});
to the conditional statment of if (e.target.tagName.toLowerCase() == "a")
i would like to also add "OR class is equal to price".
I'm not quite sure how to do that, i can't seem to find the class of the clicked element (which will be a td inside the table row).
i've tried $(this).class
, $(this.class)
but neither work....
Help would be greatly appreciated!