سؤال

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!

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top