Don't forget to hit the ⭐ if you like this repo.
- a)
addEventListener()
- a) Prevent the default behavior of an event
- a)
click
- a)
event.target
- a)
removeEventListener()
- a) The order in which events are handled when multiple elements are nested inside each other
- a)
event.stopPropagation()
- a) The process of checking user input in a web form to ensure it meets certain criteria
- a)
document.getElementById("myField").value
- a)
setCustomValidity()
- a) Ensure that user input meets specific requirements or constraints
- a)
input
- a)
element.checked
- a) Specify a regular expression pattern for validating input
- a)
reset()
- a) Indicate that the input field must be filled before submitting the form
- a) Update the
innerHTML
property of a specific element - a)
input
- a)
element.value === ""
- a) Specify the maximum length of the input field
- a)
mouseover
- a)
element.checked
- a) Prevent the user from interacting with the form field
- a)
focus()
- a) Specify whether the browser should provide autocomplete suggestions
- a)
keydown
- c) Append new options to the select element using the
appendChild()
method - a) Occurs when an element loses focus
- d) Convert the value to a number using the
parseInt()
orparseFloat()
functions - a) Occurs when an element gains focus
- a) Set the
disabled
property of the form field totrue
- a) Occurs when a key is released on the keyboard
- a) Set the
value
property of the input field to the desired value - a) Occurs when the value of an input field changes
- a) Compare the value to a regular expression pattern for URL validation
- a) Occurs when a form is submitted
- a) Create a new
input
element using thedocument.createElement()
method - a) Occurs when a form is reset to its initial state
- a) Use the
removeChild()
method to remove the element from its parent - a) Occurs when the mouse enters an element
- a) Set the
textContent
property of the element to the desired text - a) Occurs when the mouse leaves an element
- a) Set the
style
property of the element to the desired style rules - a) Occurs when the mouse leaves an element
- a) Use the
classList.add()
method to add the class to the element - a) Occurs when the mouse moves inside an element
- a) Use the
classList.remove()
method to remove the class from the element - a) Occurs when a key is pressed on the keyboard
- a) Set the
src
attribute of the image element to the desired source URL - a) Occurs when a key is released on the keyboard
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.