JQuery document ready
$(document).ready(function() { // put all your jQuery goodness in here. }); // OR $(function() { // put all your jQuery goodness in here. });