Get a td's title attribute.
Hi,
I have a table that has many cells. Each cell has different title attribute. My original code was to get the text of a cell. How to modify it to get the cell's title attribute?
- var showTooltip = function(event) {
- var authorName = $(this).text();
- $tooltip
- .text('Highlight all articles by ' + authorName)
- .show();
- positionTooltip(event);
- };
Thanks.