Chapter 2. Interacting with the User by Making Use of jQuery Events

In this chapter, we will cover:

  • Detecting button clicks
  • Detecting element clicks
  • Detecting change
  • Updating content based on user input
  • Detecting key press events on inputs
  • Restricting input character length
  • Changing page elements on mouse hover
  • Triggering events manually
  • Preventing event triggers
  • Creating a custom event

Introduction

This chapter looks at how you can make use of jQuery's many events to allow your interface to respond to different user interactions, such as button clicks, and also how jQuery events can help you with form validation.

Get jQuery 2.0 Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.