1

Possible Duplicate:
JQuery - multiple $(document).ready … ?

Does it matter if we have more than one document.ready in a page? because I have some JavaScript files which all of them have this phrase inside. Will it cause problem? Any logical or syntax problem?

Community
  • 1
  • 1
hd.
  • 17,596
  • 46
  • 115
  • 165

1 Answers1

0

Nope, that is fine.

One more great thing about $(document).ready() that I didn't mention in my previous post is that you can use it more than once. In fact, if you don't care at all about keeping your code small, you could litter your javascript file with them

Source.

alex
  • 479,566
  • 201
  • 878
  • 984