24 ways to impress your friends

Jump to menu

Vote down?

Marc

Great article, Simon. jQuery and Google Maps go together like bread and butter.

@Matthew: $(document).ready(function() { is actually a little different than how Simon is wrapping his code. He uses jQuery(function($) { which not only runs the code when the document loads, but also hide the $ namespace from other libraries. So, it doesn’t run the code until the document is loaded AND avoids conflicts between other libraries.