I have an a tag which is nested inside a div that has the class "divi" and I want to remove only the a tag from it, keeping all other content inside it.
Yet, this a tag doesn't have an identifier (id, class) and I prefer not to give one (a long theming story why).
This is what I've done so far, but it doesn't work:
let removeGpLogo = document.querySelector(".divi");
removeGpLogo.a.style.display = "none";
I can see why my code is illogical --- A has no identifier so identifier-dependent codes like "display: none" won't work on it, but what will?...
How could I hide the tag without giving it an identifier, if at all?