BWSnippet

jQuery get HTML of parent

jQuery get HTML of parent

Get the HTML inside of some parent object

normally to get a parent we use:

$(this).parent().parent();

So to get the actual HTML fromt a parent try:

var elementHTML = $(this).parent().parent().html();

Tags

jQuery get HTML of parent