I'm using this innerHTML to fill a layer with a form, but when I send the form, hidden fields seem to be empty, any hints?
-------------------------------------------------------
var streetHTML = <input type='hidden' name='street' id='street' value'"+street2+"'><input name='city' type='hidden' id='city' value'"+city2+"'>";
document.getElementById(object).innerHTML = streetHTML;
-------------------------------------------------------
If I use document.write to display the values of street2 and city2 they are perfectly displayed, so values exist and are ok...
-------------------------------------------------------
var streetHTML = <input type='hidden' name='street' id='street' value'"+street2+"'><input name='city' type='hidden' id='city' value'"+city2+"'>";
document.getElementById(object).innerHTML = streetHTML;
-------------------------------------------------------
If I use document.write to display the values of street2 and city2 they are perfectly displayed, so values exist and are ok...