I have some dynamic html I generate, when I do $(this) and console log it I get the following (in square brackets):
<td groupid="146"><div class="tt" style="width:64px; height:22px; margin:0 auto"></div></td>
From $(this) alone how can I get the value of groupid?
The selector is returning an array of elements. $(this)[0] will return the element, or
$(this).attr('groupid');the attribute value.