I was trying to figure out how to auto-populate the input value base on what was entered in another input field using javascript. Here\'s my code:
I made a js fiddle based on what you're asking for.
HTML
Home Address:
Apt or Suite Number:
City/Town:
State:
Zip:
Select Shipping Address Below:
JavaScript
$("#address,#suite,#city,#state,#zip").change(function () {
var addressArray = [$("#address").val(), $("#suite").val(), $("#city").val(), $("#state").val(), $("#zip").val()];
$("#shiadd1").text(addressArray.join(' '));
});