1
Reply

Why document.ready function is used in jQuery ?

Anil Kumar

Anil Kumar

12y
3.2k
0
Reply

    It prevents the execution of codes written inside it until the DOM is ready/loaded. Thus it ensures the availability of referred elements.