Bixy, They don't work if you've hidden the element in the CSS stylesheet. Element.show() only works when the element is by default visible, but was also hidden with JavaScript.
That is good practice to follow - if you're going to show it with JavaScript, make sure you hide it with JavaScript and not by CSS stylesheets. If the element should initially be hidden, use: document.observe("dom:loaded", function(){ $("foo").hide() }) If CSS is hiding it, you must show it by explicitly setting style.display to "block". On Nov 23, 2007 2:05 PM, bixy <[EMAIL PROTECTED]> wrote: > > Hi, > > hide() and show() element function don't work. > They use element.style.display member directly which always return an > empty string when using prototypejs > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~----------~----~----~----~------~----~------~--~---