I have a table in HTML that holds names, addresses and phone numbers.
In each row for that table, there is a link you can select that opens up a popover. When a popover is selected, I would like to store the name for that specific row. The class associated with a name is
<td class="du-orl-1"> Daniel </td>
I am trying to store that name in a class via Javascript but this just seems to store the whole array of data rather than the specific element:
var objectId = $(".du-orl-1").html($(this).html());
Any ideas on what I am doing wrong?
thisin your code is would be helpful, as you want thethisto be the <td> in question.