Consider an HTML form with a checkbox and a text field. When data is entered and the return key is pressed, the data seems to be lost before the user can click on the button that calls the processing function. How do you correct this?

  1. Add a TYPE=HIDDEN INPUT to the form

  2. Trap the return keypress and return (null

  3. Add 'return false' to onsubmit="..." in the FORM tag

  4. Instruct the user not to press the Return key.


Correct Option: C

Find more quizzes: