On my forum, I would like to have "user address" and "send address". So that user would not write the same address twice if he would like both addresses the same I would add checkbox "Use the same address as above" and if he checks that textfield named "address2" would be filled with value of "address" field. If he would remove the tick at checkbox field "address2" would became empty. How can I make that?
Example:
If I do not have tick in box:
[b]User details:[/b]
Name: Cute
Address: Somewhere 1
Country: Noland
...
[ ] [b]Use the same data as above[/b]
[b]Shipping address:[/b]
Name:
Address:
Country:
...
If I do have tick in box:
[b]User details:[/b]
Name: Cute
Address: Somewhere 1
Country: Noland
...
[X] [b]Use the same data as above[/b]
[b]Shipping address:[/b]
Name: Cute
Address: Somewhere 1
Country: Noland
...