0
Hide and Show element after x amount of time?
button onclick will hide pic. How do I make set the interval to display the image again after x amount of time? https://code.sololearn.com/WdWD2uZwCGfp/#js
2 Respostas
+ 4
Add in your buy function:
setTimeout(function(){
x.style.display ='block';
y.style.display = "none";
},2000)
+ 1
Thank you, very much appreciated. I can't seem to make the 'item added to cart' div be hidden afterwards though.