E
EnjoyNews
Hi
Probably a simple question.
How do I write a text in a div while I type it in an input field ?
ex.
I type a text in an input field, and as i type it the text apear in a <div>
right below.
I have found this in the net:
<form name="test" action="">
<input type="text" size="35" name="text"
onkeyup="this.form.return.value=this.value"><br>
<input type="text" readonly size="35" name="return">
</form>
But this return the intire form instead of just the one input field i need.
And it also uses another input field to write it in, where I need it to be
written in a <div>
Probably a simple question.
How do I write a text in a div while I type it in an input field ?
ex.
I type a text in an input field, and as i type it the text apear in a <div>
right below.
I have found this in the net:
<form name="test" action="">
<input type="text" size="35" name="text"
onkeyup="this.form.return.value=this.value"><br>
<input type="text" readonly size="35" name="return">
</form>
But this return the intire form instead of just the one input field i need.
And it also uses another input field to write it in, where I need it to be
written in a <div>