Capture field changes made using javascipt

Really odd. What are you updating with your javascript? The value in the input field on the screen, or the field in the row which would update the input field on the page?