jQuery Custom Events
Overview In the last article about unobtrusive JavaScript, we learned how to use event delegation and markup-driven behavior to create reusable JavaScript components. This article will explore how to use custom events in jQuery to give the developer even greater control over the component's behavior. While many facets of an unobtrusive widget can be controlled via the markup (data attributes), we can expose even more to the developer by triggering custom events. These events are fired on the DOM just like normal browser events, with the same bubbling characteristics. In jQuery, it's as simple as this:… Read more »jQuery custom “remove” event with Chrome 24
On January 10th 2013, Google released version 24 of Chrome, which included an unexpected feature: the native remove() method of an HTML element: It's essentially a shortcut for this: element.parentNode.… Read more »Unobtrusive JavaScript
What it used to mean The meaning of the phrase unobtrusive JavaScript has changed since jQuery came around. To understand this change, let's first go back to when we used to write code like this: <form class="validated_form" onsubmit="return validateForm(this)"> This is definitely obtrusive JavaScript, since the code is directly embedded in the HTML tags.… Read more »Sign up to receive email communications regarding events, webinars, and product news.





