Interviewer And Interviewee Guide

Web Development Ninjas Interview Question:

Explain me what is $(document).ready() function? Why should you use it?

Submitted by: Muhammad
This is one of the most important and frequently asked questions. The ready() function is used to execute code when document is ready for manipulation. jQuery allows you to execute code, when DOM is fully loaded i.e. HTML has been parsed and the DOM tree has been constructed. The main benefit of $(document).ready() function is that, it works in all browser, jQuery handles cross browser difficulties for you. For curious reader see answer link for more detailed discussion.
Submitted by: Muhammad

Read Online Web Development Ninjas Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.