Since I cannot set the value of an input field with type = text. I used to always use something like this:
<input style="display: none" type="text" name="geo_poi" value="" id="geofeld" />
Then in JavaScript, I added code containing a line like this:
document.getElementById("geofeld").value = geo_poi;
It always worked. Perhaps new browsers no longer want to support the above method.
source share