Posts by Rafael Harus • 21 points
2 posts
-
0
votes4
answers8962
viewsA: I cannot do an onchange event to change a photo when we select the select field
window.onload = function(){ mudaFoto(); } function mudaFoto(){ switch(document.getElementById('produtos').value) { case '1': …
-
2
votes4
answers8962
viewsA: I cannot do an onchange event to change a photo when we select the select field
Try it this way <script type="text/javascript"> window.onload = function(){ mudaFoto(); } function mudaFoto(){ switch(document.getElementById('produtos').value) { case '1':…