Posts by user136436 • 26 points
1 post
-
1
votes1
answer44
viewsA: How to enter the Table Header (th) value for a data-title
Then you want to pass the element innerText to data-title, not the date attribute. $('th').each(function() { $(this).attr('data-title', $(this).text()); }); Or without jQuery: for (let el of…
javascriptanswered user136436 26