I have a list of links that all go to google maps api.
links already have the daddr (destination) parameter in them as static. I use Geo-Location to find the position of the user, and I want to add saddr (source address) to the links after receiving the data.
so basically i need to add something like &saddr=50.1234567,-50.03452 to the end of all links pointing to google maps
All links have a class called directions-link
and this page I figured out how to change them:
$("a.directions-link").attr("href", "http://www.google.com/");
However, I only want to add a value to the end of href without changing what href already is.
How can i do this?
jquery
JD Isaacks May 10 '10 at 19:20 2010-05-10 19:20
source share