Youtube Channel

Copy the content of textbox to anohter textbox in html using JavaScript

While filling online forms we came along a situation where our current address is copied to permanent address automatically by selecting a radio button or check box. Lets see how its works.

All we have to do is to copy the text and paste it to the destination textbox using JavaScript.

Design a HTML page like :


Click Here to  Download all Codes

Code for  HTML page  :


Click Here to  Download all Codes

Code for JavaScript :


Click Here to  Download all Codes

Final snapshot with output :





Next PostNewer Post Previous PostOlder Post Home