Course lectures : 1 of 4


Copy field content with checkbox

Last updated: 28th April 2013

In this tutorial I'm explaining how to create a simple functionality for the online form where by selecting the checkbox, content of the fields from one section is copied to the other section of the form.

This functionality is particularly useful in the situations where the visitor uses the same billing and shipping address during the checkout process.

We'll create all this using some javascript and a few jQuery methods.

jquery checkboxjquery copy with checkboxcopy part of the form with jquerduplicate form input with jquerycopy form input with jquery


If you'd like to include code example please wrap your code within <pre><code> tags.

function fullName(firstName, lastName)
    return firstName + ' ' + lastName;