I inserted some jquery code which is designed for an feature of one page into my common js file. Now all pages are throwing an error and I think it is because I don't understand the difference between a jQuery function and a normal one. The jQuery one starts off like this:
$.fn.googleMap = function(address, options) {
and is called from within the $(document).ready(function(){ like this:
$("#location div").removeClass().googleMap(""+location1+"");
I tried (just in case) to do: function googleMap(address, options) { ...but then I am not sure if that 1. works and 2. how to trigger it from within "$(document).ready" part.