How to use Jquery Document Ready Function?

$(document).ready(): code excutes after the domĀ  is completly loaded.

Example:

$(document).ready(function() {
// Your code here
});