I thought that in order to use jQuery as follows
this.imagesHolder = jQuery("#imgs");
inside of MyClass I would have to enclose it inside
$(document).ready(function(){...
so that DOM is ready before invoking MyClass.
Is my assumption wrong?
Monday, December 29, 2008
[jQuery] Re: define and invoke class inside $(document).ready
Yep, I intend to use myClass outside of document ready.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment