how to get the image id and use hiding the image using prototype js?

Posted by patel on Stack Overflow See other posts from Stack Overflow or by patel
Published on 2010-04-03T23:24:35Z Indexed on 2010/04/03 23:33 UTC
Read the original article Hit count: 165

DeCheBX = $('MyDiv').insert(new Element('input', { 'type': 'checkbox', 'id': "Img" + obj[i].Nam, 'value': obj[i].IM, 'onClick': 'SayHi(this)' })); document.body.appendChild(DeCheBX); DeImg = $('MyDiv').insert(new Element('img', { 'id': "Imgx" + obj[i].Nam, 'src': obj[i].IM })); document.body.appendChild(DeImg); } SayHi = function(x) { try {

                    if ($(x).checked == true) { 

© Stack Overflow or respective owner

Related posts about prototype

Related posts about javascript-framework