$(this).parent().parent()
.children(this.attr("tagName").toLowerCase())
.css("background-color", "yellow");
xpath:
/html/body/div/table/tr/td/b/a
$(this).tagName
is Anchor <a>
the problem with this is that children() looks at the immediate children of $(this).parent().parent()
. Hence it will highlight <b>
instead of <a>
i need a way to ignore this immediate children restriction, and select <a>
not `