why does $().invokde('hide')doesnt work?what is used to hide image in prototype.js?

Posted by vicky on Stack Overflow See other posts from Stack Overflow or by vicky
Published on 2010-04-01T06:03:24Z Indexed on 2010/04/01 6:13 UTC
Read the original article Hit count: 291

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) {


                            var y = "Imgx" + 1;
                            alert(y);
                            $('y').invoke('hide');

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about javascript-framework