You could get the element with the id and then use querySelector on it.
For example,
const parentElm = document.querySelector("#abc-1"); const childElm = parentElm.querySelector(".my-class");
Of course you should always check if parentElm exists or not.
You could also use nested selector for the same.
const childElm = document.querySelector("#abc-1 .my-class");
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You could get the element with the id and then use querySelector on it.
For example,
Of course you should always check if parentElm exists or not.
You could also use nested selector for the same.