Skip to content

Instantly share code, notes, and snippets.

View bradwestfall's full-sized avatar

Brad Westfall bradwestfall

View GitHub Profile
@bradwestfall
bradwestfall / gist:c87fb32047247eac899b
Last active August 29, 2015 14:02
jQuery Event Delegation (Live Binding)

Event Binding in jQuery

In jQuery, event binding can be a confusing topic at first. Especially when we attempt to do Delegated Events (or live binding , binding to elements that don't exist on the screen yet)

But first, let's clear up just a few things regarding normal event binding...

.click vs .on('click')

jQuery provides specific methods such as .click() or .mouseover() which can be used in this way

@bradwestfall
bradwestfall / gist:002312c3628eac9cc215
Last active July 11, 2022 15:09
Beginner JavaScript