M
mammothman42
WHY, oh WHY, won't my cute little js work? it consistently returns
"initial", that is, it fails to update the hidden field value. PLEASE
help a humbled, annoyed fellow programmer.
var html='<input type="hidden" name="length" value="initial"/>';
var value=1;
document.write(html);
increaseValue();
function increaseValue()
{
value++;
document.getElementsByName('length').value=value;
}
cheers
dave
"initial", that is, it fails to update the hidden field value. PLEASE
help a humbled, annoyed fellow programmer.
var html='<input type="hidden" name="length" value="initial"/>';
var value=1;
document.write(html);
increaseValue();
function increaseValue()
{
value++;
document.getElementsByName('length').value=value;
}
cheers
dave