1
Hello, I have an input where it serves as a search bar. By 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 typing scripts it goes to another page, but does not change the image. How do I change the image of another page?
Perfect! Thank you so much! You have no idea how you helped me. ^^
– Guilherme S. Santos
You’re welcome, @Guilhermes.Santos! I’m very happy to help, and even more so when they come back to thank you and say it was useful.
– Michelle Akemi