O
Offm
I was trying to make some experiences with javascript ,
making a div response to a text input but cannot say what am doing bad so if
anyone could help with the script,
many Thanks
the script follows
<script type="text/javascript">
function I(form)
{
if(form.e2.value=="")
document.getElementById("dc").innerHTML="something";
}
</script>
<p >
<form name="form">
<input name="e2" size="20" type="text">
<select name="e1">
<option>option.....
<option>option1
</select>
<input src="" onclick="I(form)" align="right" type="image" width="60"
height="49"></p>
</form>
<p> </p>
<div id="dc">
</div>
making a div response to a text input but cannot say what am doing bad so if
anyone could help with the script,
many Thanks
the script follows
<script type="text/javascript">
function I(form)
{
if(form.e2.value=="")
document.getElementById("dc").innerHTML="something";
}
</script>
<p >
<form name="form">
<input name="e2" size="20" type="text">
<select name="e1">
<option>option.....
<option>option1
</select>
<input src="" onclick="I(form)" align="right" type="image" width="60"
height="49"></p>
</form>
<p> </p>
<div id="dc">
</div>