onClick copies text from one field to another

I’ve searched through google and have found things similar, but nothing for what I need. Most of the tut’s were far more advanced than what I needed.

So, anyone know some JS that will copy text from textfield1 to textfield2?

Thanks!

[quote=Syous;2327238]I’ve searched through google and have found things similar, but nothing for what I need. Most of the tut’s were far more advanced than what I needed.

So, anyone know some JS that will copy text from textfield1 to textfield2?

Thanks![/quote]

I’m a bit of a framework guy, here’s the mootools answer:


$('textfield2').setProperty('value',$('textfield1').getValue());