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>
I had to do something like this just now. I ended up doing: