Take a look at the function on line 11. This is the result:select handler, and it will be called when a user clicks on an address.

We need to adjust the ID field values to match our form. If you scroll up the page a little, you'll see that our fields are named customer_street_details_1, customer_street_details_2, customer_suburb, customer_state and customer_postcode.