I created a simple app that checks addresses.
The address then needs to be redirected to google maps, i found an easy way to redirect it to it using this code
this code if for browser test purposes. i use this code on the actual app
The selected address is being stored in an ID called NewAddr that ive located on the javascript
i need help to know how can i use the data that has been chosen from the ID (newAddr) to the selected <a href=
Regards.
Amir.
The address then needs to be redirected to google maps, i found an easy way to redirect it to it using this code
HTML Code:
<a href="https://maps.google.com/maps?q=ADDRESS">HTML Code:
<a href="geo://0,0?q=ADDRESS" data-rel="external">Code:
function map() {
var oldAddr = document.getElementById("oldAddr");
var newAddr = document.getElementById("newAddr");
newAddr.innerHTML = h[oldAddr.value];
}Regards.
Amir.