Hello, I have an input where it serves as a search bar. When entering a name and pressing enter, a function is activated and performs the following function:
function verificaValor(){
var valor = $('#search').val();
switch (valor) {
case "scripts":
window.location.href = 'scripts.html';
document.getElementById("imgDinamica").src="Slide1.png";
break;
When you type scripts it goes to another page, but it does not change the image. How do I change the image of another page?