Problem : Running a jQuery script returns error $(‘<identifier’>).<function-name> not defined.
example : function smartmenus not defined.
Solution: Try the following in the initializing script:
$(document).ready( function($){
blah, blah, blah
} );
example:
jQuery(document).ready(function($) { $('#main-menu').smartmenus({ subMenusSubOffsetX: 1, subMenusSubOffsetY: -8 }); });