I have a Javascript event that is fired when a location is detected. Let's say that the detected location is "Melbourne Australia".
I want to change the following:
<a href="/search?location=&input=Suits">Suits</a>
To be:
<a href="/search?location=Melbourne Australia&input=Suits">Suits</a>
All I can think of us changing the entire href value. Is there a 'sane' way to change only the value of location= when the event is fired.