Srch.U.getParentElementByName Method (DisplayTemplatesSrch)
Gets the closest parent element with the given tag name.
Srch.U.getParentElementByName(startingElement, tagName)
Return value
The closest parent element or self element with the given tag name; null if no matching element is found.
Parameters
startingElement
The element from which to start the search.tagName
The tag name for which to search.