S
SimonV
Hmm, I let the user add more input fields as needed. But I have a
strange problem with ff (and other mozillas)
When I add a field in ff, the others lost their content...
In IE the content stays
Is there a work-around for this?
this a piece of code to check this out:
<html>
<head>
<script type="text/javascript">
var counter = 0;
function doit(){
counter++;
document.getElementById('content').innerHTML += "<input type=\"text\"
id=\"field"+ counter +"\"/>";
}
</script>
</head>
<body>
<h1 id="header" onClick="doit()">Old header</h1>
<div id="content"><input type="text" id="jupse"/></div>
</body>
</html>
strange problem with ff (and other mozillas)
When I add a field in ff, the others lost their content...
In IE the content stays
Is there a work-around for this?
this a piece of code to check this out:
<html>
<head>
<script type="text/javascript">
var counter = 0;
function doit(){
counter++;
document.getElementById('content').innerHTML += "<input type=\"text\"
id=\"field"+ counter +"\"/>";
}
</script>
</head>
<body>
<h1 id="header" onClick="doit()">Old header</h1>
<div id="content"><input type="text" id="jupse"/></div>
</body>
</html>