Updated fiddle. The function is executed, when the left, middle or right mouse button is released, while the Thank you Radhika! jQuery Certification Document your jQuery knowledge with the w3schools certification exam. click ( function () {. is executed when the form field loses focus: The on() method attaches one or more event handlers for the selected elements. An HTML form with three input fields; two text fields and one submit button: The tag specifies an input field where the user can enter data. Tip: Always use the