Hi, I'm trying to toggle a class for a link when it is clicked so it either shows plus to expand or minus to reduce but I can't get it working.
My jQuery is as follows:
$(".viewdetails").click(function() {
$(this).toggleClass('viewdetailsoff');
$(this).parents("tr").next().toggle();
return false;
})
My initial link
<a class="viewdetails" title="View History" href="">History</a>