HTML code: <input type="checkBox" onclick="doCopy"/>Copy
<form id="user1"> <input type=text id=user1_name /> <input type=text id=user1_pass /> </form> <form id="user2"> <input type=text id=user2_name /> <input type=text id=user2_pass /> </form> JS code: function doCopy(){ $("user2_name").val($("user1_name").val()) $("user2_pass").val($("user1_pass").val()) } HTH. Becoder. On Tue, Oct 20, 2009 at 10:02 AM, ReynierPM <rper...@uci.cu> wrote: > > Hi every: > I need when a user pick a checkbox the content in one field is copied to > another field in the same form. For example suppose this: > > __ checkbox > > --- User 1 ---- > Name: __________ > Pass: __________ > > --- User 2 ---- > Name: __________ > Pass: __________ > > I want when user marks or picks the checkbox the content from User1_Name > is copied to User2_Name and so on. Can any help me do this? > Cheers and thanks in advance > -- > ReynierPM >