Difference between body onload() functi and document.ready() function in jQuery is as below
1. We can have more than one document.ready() function in a page where as we can have only one onload function.
2. Document.ready() function is called as soon as DOM is loaded where body.onload() function is called when everything gets loaded on the page that includes DOM, images and all associated resources of the page.