Why doesn't this update live vs. when the user finishes typing or clicking away from the input?
$(document).ready(function() {
$("input[id^='ralph']").change(function() {
var currentId = $(this).attr('id');
var currentValue = $(this).val();
//Billing
var elements = currentId.replace('ralph','john');
$('.' + elements).text(currentValue);
//Shipping
var elements = currentId.replace('john','george');
$('.' + elements).text(currentValue);
});
});