I'm trying to populate a field with Street Address, City, State, and Zip but right now when I enter data into each field it replaces the last one.
$("#trainer_address").keyup( function () {
$('#location').val($(this).val());
});
$("#trainer_city").keyup( function () {
$('#location').val($(this).val());
});
$("#trainer_state").keyup( function () {
$('#location').val($(this).val());
});
$("#trainer_zip").keyup( function () {
$('#location').val($(this).val());
});
How do I get it to keep the previous value, and then add the next so I can end up with something like 402 StreetAddress City State, 12345?