Advertisement
Guest User

Untitled

a guest
Dec 20th, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.29 KB | None | 0 0
  1. $(function () {
  2.     $(".addValues").click(function () {
  3.         var $this = $(this),
  4.             myCol = $this.closest("td"),
  5.             myRow = myCol.closest("tr"),
  6.             targetArea = $("#selection");
  7.         targetArea.append(myRow.children().not(myCol).text() + "<br />");
  8.     });
  9. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement