I have an element in my product list page that I want to hide until the rest of the document has finished loading. (it's a list item with the class "hideme") The JS solution doesn't work for me, so I'm looking for a scriptaculous method, which should work better in Magento. Any help would be greatly appreciated. Thanks!
Magento - Display element on page load using scriptaculous and prototype
782 views Asked by Palmer Del Campo At
1
If you want to make something client-side once the DOM has been loaded, you should try with this: document.observe("dom:loaded", function() { // initially hide all containers for tab content $$('div.tabcontent').invoke('hide'); });
Is more like jQuery(document).ready();
Greetings.