Hi,
This is my html code:
<div id="binnenland<%=i%>" style="position:absolute; top:<%=(i+1)*104+(i*61)%>px; left:150px;">
<table border="0">
<tr>
<td class="label"><input name="postcode1<%=i%>" class="textbox" type="text" size="7" value="<%=klager.getPostcode()%>" onBlur="javascript:setTeller(<%=i%>);doPostcode_onBlur();"></td>
<td> Gemeente: <input type="hidden" name="gemeentenaam1<%=i%>">
<select name="gemeente1<%=i%>" class="keuzelijst" onchange="javascript:setTeller(<%=i%>);doGemeenteLB_onChange();">
<option value=""></option>
<%= datamanager.cache.getGemeentenProv(conn, sese.getNisCode())%>
</select></td>
<td><a href="javascript:setTeller(<%=i%>);doAlleGemeentenBT_onClick();" onMouseOut='MM_swapImgRestore()' onMouseOver="MM_swapImage('gemeenten','','../gif/gemeenten_sel.gif',1);"><img name="gemeenten" alt="alle gemeenten" src="../gif/gemeenten.gif" border="0"></a></td>
</tr>
</table>
</div>
<div id="buitenland<%=i%>" style="position:absolute; top:<%=(i+1)*105+(i*61)%>px; left:150px;">
<table border="0" >
<tr>
<td class="label"><input name="postcode2<%=i%>" type="text" class="textbox" size="7" value="<%=klager.getPostcode()%>"></td>
<td class="label">Gemeente:</td><td><input type="text" name="gemeentenaam2<%=i%>" class="textbox" size="30" value="<%=klager.getGemeente()%>"></td>
<td class="label">Land:</td><td><input type="text" name="land<%=i%>" class="textbox" size="15" value="<%=klager.getLand()%>"></td>
</tr>
</table>
</div>
In javascript I want to put a value into some fields from the divs, want I constantly get an error 'has no properties' with the following code:
var bi=document.layers['binnenland'+tel];
var bu=document.layers['buitenland'+tel];
bi["postcode1"+tel].value="";
bi["gemeentenaam1"+tel].value="";
PS In IE this works fine with document.fm.elements["postcode1"+tel].value=""; but not in NN4.76, that's why I tried the code above, but this doesn't work eather
This is my html code:
<div id="binnenland<%=i%>" style="position:absolute; top:<%=(i+1)*104+(i*61)%>px; left:150px;">
<table border="0">
<tr>
<td class="label"><input name="postcode1<%=i%>" class="textbox" type="text" size="7" value="<%=klager.getPostcode()%>" onBlur="javascript:setTeller(<%=i%>);doPostcode_onBlur();"></td>
<td> Gemeente: <input type="hidden" name="gemeentenaam1<%=i%>">
<select name="gemeente1<%=i%>" class="keuzelijst" onchange="javascript:setTeller(<%=i%>);doGemeenteLB_onChange();">
<option value=""></option>
<%= datamanager.cache.getGemeentenProv(conn, sese.getNisCode())%>
</select></td>
<td><a href="javascript:setTeller(<%=i%>);doAlleGemeentenBT_onClick();" onMouseOut='MM_swapImgRestore()' onMouseOver="MM_swapImage('gemeenten','','../gif/gemeenten_sel.gif',1);"><img name="gemeenten" alt="alle gemeenten" src="../gif/gemeenten.gif" border="0"></a></td>
</tr>
</table>
</div>
<div id="buitenland<%=i%>" style="position:absolute; top:<%=(i+1)*105+(i*61)%>px; left:150px;">
<table border="0" >
<tr>
<td class="label"><input name="postcode2<%=i%>" type="text" class="textbox" size="7" value="<%=klager.getPostcode()%>"></td>
<td class="label">Gemeente:</td><td><input type="text" name="gemeentenaam2<%=i%>" class="textbox" size="30" value="<%=klager.getGemeente()%>"></td>
<td class="label">Land:</td><td><input type="text" name="land<%=i%>" class="textbox" size="15" value="<%=klager.getLand()%>"></td>
</tr>
</table>
</div>
In javascript I want to put a value into some fields from the divs, want I constantly get an error 'has no properties' with the following code:
var bi=document.layers['binnenland'+tel];
var bu=document.layers['buitenland'+tel];
bi["postcode1"+tel].value="";
bi["gemeentenaam1"+tel].value="";
PS In IE this works fine with document.fm.elements["postcode1"+tel].value=""; but not in NN4.76, that's why I tried the code above, but this doesn't work eather