What is $(document).ready() ?

What is $(document).ready() ?

Before you can safely use jQuery to do anything to your page, you need to ensure that the page is in a state where its can be manipulated.

like as :

$(document).ready(function(){

alert("Page is ready for manipulation.");
});


$(document) is used for creating object of our page document.

ready() is used for indication for page is in ready state.

Share this

Related Posts

:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:P
:o
:>)
(o)
:p
:-?
(p)
:-s
(m)
8-)
:-t
:-b
b-(
:-#
=p~
$-)
(y)
(f)
x-)
(k)
(h)
cheer