Can we add more than one ‘document.ready’ function in a page?



Can we add more than one ‘document.ready’ function in a page?..

Answer / Radha Singh

Yes, we can add multiple document ready functions in a page by wrapping each function inside a jQuery ready handler. However, it is considered best practice to use jQuery's namespace mechanism to avoid potential naming conflicts.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More jQuery Interview Questions

Is there any difference between body onload() and document.ready() function?

1 Answers  


Need to add jQuery file in both Master and Content page?

1 Answers  


Why do we use jQuery?

1 Answers  


How we can remove an attribute of an html tag in jquery?

1 Answers  


How do you get the attribute of an html tag in jquery?

1 Answers  


What is the use of jquery.data()?

1 Answers  


How can we give face effect in jquery?

1 Answers  


What is wrong with this code line "$('#myid.3').text('blah blah!!!');"

1 Answers  


Is window.onload is different from document.ready()?

1 Answers  


How to get the server response from an ajax request using jquery?

1 Answers  


Difference between document.ready() and body onload()?

1 Answers  


How can events be prevented from stopping to work after an ajax request?

1 Answers  


Categories