Monitoring changes in input fields can be achieved through two methods:
$('form').submit(function(event){
alert("This function is triggered when the form is submitted, allowing you to test for any differences.");
});
$('form input[type="text"]').change(function(event){
alert("This function is executed when a text input field's value is modified");
});
For more precision, you can also track keyboard input within specific input fields:
$('form input[type="text"]').keydown(function(event){
alert("This function is called as soon as a key on the keyboard is pressed, before the character appears in the input field.");
});
$('form input[type="text"]').keyup(function(event){
alert("This function is triggered after a key has been released, once the character appears in the input field.");
});
Note: It is advisable to include password and email fields, and possibly select boxes if using the onchange event.