I'm newbie to jQuery (I came to JavaScript from PHP).
I grouped multiple jQ functions in seperate files. I have the following questions:
$(document).ready(function () { });
. Can I use Domready more than 1 time?No, you do not have to have every jquery function within the document ready handler. But if your code references any part of the DOM, you should have it within that context.
You can have any number of functions bound to any event, including document.ready. So feel free to use $(document).ready(function () { }); or even better $(function () {}) all you want.