I couldn't find the reference for $().ready()

2 answers

danwellman 5600
3
points
This was chosen as the best answer

the syntax is slightly wrong,

$(function() { })

is equivalent to

$(document).ready(function() { })

This page shows the info :)

Answered about 7 years ago by danwellman
Aaron 45
2
points

It should be :

$(function(){
//code goes here
})

same with

$(document).ready(function(){
//code goes here;
})
Answered about 7 years ago by Aaron