I have some google map markers that sit on a map. They are controlled by the rout-markers id. When I do this command:
document.getElementById('rout_markers').style.display = 'none';
I am able to make all existing markers disappear from the map, which is what I want. But if new markers are added, I am not able to add them to the rout_markers element by doing this:
document.getElementById('rout_markers').value = str;
I mean, the markers do appear on the map, just not in the rout_markers id and I can't pass them to the request when I need to. Is there some way I can get the newly-created markers to get attached to the rout_markers id again?
Is this a generally accepted method of doing things in JS still?
Thanks, Alex