Skip to content

Latest commit

 

History

History
74 lines (64 loc) · 4.13 KB

n3aa.md

File metadata and controls

74 lines (64 loc) · 4.13 KB

Stars Badge Forks Badge Pull Requests Badge Issues Badge GitHub contributors Visitors

Don't forget to hit the ⭐ if you like this repo.

JavaScript: JS Event & JS Form Validation

Set A

  1. a) addEventListener()
  2. a) Prevent the default behavior of an event
  3. a) click
  4. a) event.target
  5. a) removeEventListener()
  6. a) The order in which events are handled when multiple elements are nested inside each other
  7. a) event.stopPropagation()
  8. a) The process of checking user input in a web form to ensure it meets certain criteria
  9. a) document.getElementById("myField").value
  10. a) setCustomValidity()
  11. a) Ensure that user input meets specific requirements or constraints
  12. a) input
  13. a) element.checked
  14. a) Specify a regular expression pattern for validating input
  15. a) reset()
  16. a) Indicate that the input field must be filled before submitting the form
  17. a) Update the innerHTML property of a specific element
  18. a) input
  19. a) element.value === ""
  20. a) Specify the maximum length of the input field
  21. a) mouseover
  22. a) element.checked
  23. a) Prevent the user from interacting with the form field
  24. a) focus()
  25. a) Specify whether the browser should provide autocomplete suggestions
  26. a) keydown
  27. c) Append new options to the select element using the appendChild() method
  28. a) Occurs when an element loses focus
  29. d) Convert the value to a number using the parseInt() or parseFloat() functions
  30. a) Occurs when an element gains focus
  31. a) Set the disabled property of the form field to true
  32. a) Occurs when a key is released on the keyboard
  33. a) Set the value property of the input field to the desired value
  34. a) Occurs when the value of an input field changes
  35. a) Compare the value to a regular expression pattern for URL validation
  36. a) Occurs when a form is submitted
  37. a) Create a new input element using the document.createElement() method
  38. a) Occurs when a form is reset to its initial state
  39. a) Use the removeChild() method to remove the element from its parent
  40. a) Occurs when the mouse enters an element
  41. a) Set the textContent property of the element to the desired text
  42. a) Occurs when the mouse leaves an element
  43. a) Set the style property of the element to the desired style rules
  44. a) Occurs when the mouse leaves an element
  45. a) Use the classList.add() method to add the class to the element
  46. a) Occurs when the mouse moves inside an element
  47. a) Use the classList.remove() method to remove the class from the element
  48. a) Occurs when a key is pressed on the keyboard
  49. a) Set the src attribute of the image element to the desired source URL
  50. a) Occurs when a key is released on the keyboard

Contribution 🛠️

Please create an Issue for any improvements, suggestions or errors in the content.

You can also contact me using Linkedin for any other queries or feedback.

Visitors