views:

924

answers:

1

I have quite a few partials in my application, and some of them need to do some jQuery goodness at $(document).ready time.

The problem is, if I put the $(document).ready directly into a script block for the partial, then this gets overridden if another partial does the same thing.

It seems a solution where the various $(document).ready tidbits are gathered up and then included in a single $(document).ready instance is needed.

Is there a defined way to do this already?

+6  A: 

well, just plain old never mind!

http://www.learningjquery.com/2006/09/multiple-document-ready