I have a HTML table that contains information such as names, addresses, and phone numbers.
Within each row of the table, there is a link that can be clicked to open a popover. When a popover is opened, I want to save the name from that particular row. The name in this case has a class identifier:
<td class="du-orl-1"> Daniel </td>
I've been attempting to store this name in a variable using JavaScript, but instead of retrieving just the individual element, it seems to be storing the entire array of data:
var objectId = $(".du-orl-1").html($(this).html());
Do you have any suggestions on what might be going wrong here?