hide/show a image in jquery
问题 How to show/hide the image on clicking the hyperlink? <script> function getresource(id) { if(id==4) { //show image } else if(id==5) { //hide image } } </script> <a href="#" onclick="javascript:getresource('4');">Bandwidth</a> <a href="#" onclick="javascript:getresource('5');">Upload</a> <p align="center"> <img id="img3" src="/media/img/close.png" style="visibility: hidden;" /> <img id="img4" src="/media/img/close.png" style="visibility: hidden;" /> </p> 回答1: What image do you want to hide?