I have 2 images ( image 1 and image 2 )
click on image 1 and image 2 on/off alternately
but it does not work ?
click on image 1 and image 2 on/off alternately
but it does not work ?
- Code:
$(function(){
$("body").append('<div class="vietkeybutton">
<img src="http://2img.net/s/t/20/71/96/i_folder_new.gif" onclick="MyFunction();var img = document.getElementById("imgInfo");if (img.style.visibility === "hidden") img.style.visibility = "visible"; else img.style.visibility = "hidden";" />
<img id="imgInfo" src="https://upload.vstanced.com/images/2016/09/06/NQW.png" style="visibility:hidden" />
</div>')
});
Last edited by TamDonCo on September 6th 2016, 4:10 pm; edited 1 time in total