Useful Links
Computer Science
Web Development
Frontend Frameworks and Libraries
jQuery JavaScript Library
1. Introduction to jQuery
2. Core Concepts
3. Selecting Elements
4. DOM Manipulation
5. DOM Traversal
6. Event Handling
7. Effects and Animations
8. AJAX (Asynchronous JavaScript and XML)
9. Advanced Topics
10. jQuery UI
Event Handling
Binding Event Listeners
The `.on()` Method
Basic Syntax and Usage
Attaching Multiple Events
Namespaced Events
Event Data Parameter
Event Names
Mouse Events
Keyboard Events
Form Events
Window Events
Custom Events
Event Helper Methods
Mouse Event Helpers
`.click()` Method
`.dblclick()` Method
`.hover()` Method
`.mouseenter()` Method
`.mouseleave()` Method
`.mousedown()` Method
`.mouseup()` Method
`.mouseover()` Method
`.mouseout()` Method
`.mousemove()` Method
Keyboard Event Helpers
`.keydown()` Method
`.keyup()` Method
`.keypress()` Method
Form Event Helpers
`.focus()` Method
`.blur()` Method
`.change()` Method
`.submit()` Method
`.select()` Method
Window Event Helpers
`.resize()` Method
`.scroll()` Method
`.load()` Method
`.unload()` Method
The Event Object
Accessing Event Properties
Event Methods
`event.preventDefault()` Method
`event.stopPropagation()` Method
`event.stopImmediatePropagation()` Method
Event Properties
`event.target` Property
`event.currentTarget` Property
`event.pageX` Property
`event.pageY` Property
`event.which` Property
`event.type` Property
`event.timeStamp` Property
Event Delegation
Concept and Performance Benefits
Implementing with `.on()` Method
Delegated vs Direct Events
Event Bubbling and Capturing
Unbinding Events
The `.off()` Method
Removing Specific Handlers
Removing All Handlers
Removing Namespaced Events
The `.one()` Method
One-time Event Handlers
Triggering Events
`.trigger()` Method
Triggering Native Events
Triggering Custom Events
Passing Data to Event Handlers
`.triggerHandler()` Method
Differences from `.trigger()`
Event Handling Best Practices
Avoiding Memory Leaks
Managing Event Propagation
Using Event Delegation Effectively
Organizing Event Code
Previous
5. DOM Traversal
Go to top
Next
7. Effects and Animations