Updating Bill To: fields to Ship To:

You've all seen that shopping carts have a checkbox that automatically
moves the Bill To: fields (such as name, phone number, etc) across to
the Ship To: fields.
How would you approach this in Rails?
Thank you

By using JavaScript...