I usually create my functions/classes outside of $(document).ready(), and then call them from within $(document).ready(). -Hector
On Tue, Dec 2, 2008 at 10:02 AM, ricardobeat <[EMAIL PROTECTED]> wrote: > > Yes you can, but you need to wait for the DOM to be ready to > manipulate any elements, so what you can do is a bit limited. > > You can also, for example, put your scripts at the bottom of the > <body> or after the elements you're manipulating, then you don't need > to use ready() or onload. But it's not very clean. > > - ricardo > > On Dec 2, 4:38 am, Sensible <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Can we write any code out of > > $(document).ready(); > > > > Thanks > > Waiting 4 reply. >

