When the user presses the submit button while focus was still in the last entry, the onchange handler hasn't fired yet and that last entry is lost.