Bit of a JS novice so excuse the question, but I have two menu lists in which I want the images to change. It works with just one menu using the below JS
function changeImage(anything) {
document.getElementById('slider').src = anything;
}
But if I try to target two IDs using document.querySelectorAll("slider, slider 2"); it still only works with one IDs. Is there any way to target both IDs as I don't think
https://jsfiddle.net/hyt1xLkz/
Thanks!