Can you post either your [complete] code, or a URL to view your implementation? "$(function() {" and "$(document).ready(function() {" are synonymous in jQuery, so changing from one to the other should have no discernable effect.