With my little knowledge of JavaScript, I'm trying to remove the href links on the name and title text when hovering over an image: http://www.equiuspartners.com/site/our-team/
What I thought would work:
document.querySelectorAll("h3.the-title a, div.portfolio-categories a").removeAttribute("href"); Only seems to actually work when given an array value:
document.querySelectorAll("h3.the-title a, div.portfolio-categories a")[0].removeAttribute("href"); Which, by logic, only does the first instance.
Why is it not allowing me to disable all links with the first method?