var image = document.querySelector(".rs-pzimg"); image.setAttribute("alt", "our New Alt Text");