ready():- ready() function is used to execute javascript or html code when document is ready for manipulation. jQuery allows you to run or execute code, when DOM is completly and fully loaded.
Main benefit of $(document).ready() function:-
More information about $(document).ready(function(){});