I have a list of links that all go to a google maps api.
the links already have the daddr (destination) parameter in them as static. I am using Geo-Loca
daddr
jQuery 1.4 has a new feature for doing this, and it rules. I've forgotten what it's called, but you use it like this:
$("a.directions-link").attr("href", function(i, href) { return href + '?q=testing'; });
That loops over all the elements too, so no need for $.each