Hot answers tagged

1

You'd be best off using the jQuery global scope and passing $ as an alias inside the function instead: jQuery(document).ready(function($) { This helps prevent any conflicts with other 3rd party libraries that also use the $ namespace.


Only top voted, non community-wiki answers of a minimum length are eligible