17-04-2009

jQuery declare dom ready handlers

This is triggered as soon as the dom is ready for manipulation

$(document).ready(function() {
 
	//  dom related code goes here
 
});

This is even shorter and does the same:

$(function(){
	//  dom related code goes here
});

Comments:

Your comment:

»
Prince 15/06/2011, 3:22 pm
thanks for your great post

 

[x]