Question: why would you want to have multiple $(document).ready statements
Why not just the following $(document).ready(function(){ //do this initialise functionality // then this DrawScreen functionality // then this AddMouseEvents functionality // then this return false; }); Adrian Sweeney Web Developer Mills & Reeve Tel: +44(0)121 456 8236 mailto:[EMAIL PROTECTED] http://www.mills-reeve.com -----Original Message----- From: Klaus Hartl [mailto:[EMAIL PROTECTED] Sent: 31 October 2006 07:49 To: jQuery Discussion. Subject: Re: [jQuery] $(document).ready question [EMAIL PROTECTED] schrieb: > Absolutely basic question, can I have more than one > $(document).ready(...) statement in a page? Will they all be run or > only the last one, or the first one? Hello Jyl, have a look at the documentation: "You can have as many $(document).ready events on your page as you like." They are fired in the order they were created. Jörn, I think, we should add that to the documentation... -- Klaus _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ <b>Birmingham Law Society 'Law Firm of the Year' 2006</b> ____________________________________________________________________ <b>Mills & Reeve - one of The Sunday Times 100 Best Companies To Work For in 2004, 2005 and 2006</b> This email is confidential and may be privileged. If you are not the intended recipient please accept our apologies; please do not disclose, copy, or distribute information in this email nor take any action in reliance on its contents: to do so is strictly prohibited and may be unlawful. Please inform us that this message has gone astray before deleting it. Thank you for your co-operation. Mills & Reeve Solicitors, offices at: Birmingham: 78-84 Colmore Row, Birmingham, B3 2AB. Cambridge: Francis House, 112 Hills Road, Cambridge CB2 1PH. Norwich: 1 St James Court, Whitefriars, Norwich NR3 1RU. London: Fountain House, 130 Fenchurch Street, London, EC3M 5DJ. Mills & Reeve is regulated by the Law Society. A list of Partners may be inspected at any of the above addresses. Visit our web site at: http://www.mills-reeve.com This message has been checked for viruses by the Mills & Reeve screening system. Service cannot be effected on us by e mail. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/