Posted by Thomas 'PointedEars' Lahn on 05/26/05 01:07
Matt MC wrote:
> How would I put this together so,
>
> <input name="input1" type="text">
>
> <input name="input2" value="whatever is typed into input1" type="text">
>
> I would like to be able to type something in input1, and see it type
> into input2
<input name="input1"
onkeyup="this.form.elements['input2'].value = this.value;"
onmouseup="this.onkeyup(event);">
<input name="input2" value="whatever is typed into input1">
You don't need to specify type="text", that's the initial value of the
attribute.
PointedEars
Navigation:
[Reply to this message]
|