recipe 7.5. Canceling an Event Based on Changed Circumstance
7.5.1. Problem
You need to cancel an event, such as a form submission, before the
event propagates to other elements.
7.5.2. Solution
Create a reusable function that will cancel an event:
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.
Start a Free Trial