To my knowledge, the main motivation for using ready and similar is that otherwise, you have to pay close attention to where your scripts are included in your page to ensure everything that the script relies on has already been added to that page. For example, if your script affects all .someClass elements, but not all of them have been added to the document before your script file was included, then the ones that came after the script block/include will be missed out.
On Mar 2, 9:21 pm, fetis <[EMAIL PROTECTED]> wrote: > Hi, all. > I often use jQuery outside ready() function. Like this > > <div id="a">some html</div> > <script> > $("#a").some actions > </script> > > Have this way some hidden troubles or it's ok such using?