$("#street").change(function setStreet() {
$field = $('#review_street');
$field.text($("#street").val());
});
Meaning if the user changes the street input field with the id "street" I also change it on the overview page directly.
Now everything works very well except one case - when the user refreshes the form with his browser (e.g. F5). Then the form data all stays there because of the PHP framework I use. But of course on my overviewpage the data for example for the street is not filled out because the change event has not been fired.
I also tried to change it to
$("#street").on('change ready', function setStreet() {
$field = $('#review_street');
$field.text($("#street").val());
});
but that did not work out either.
What am I doing wrong?
Thank you
Andreas