Read through http://api.jquery.com/on/ See the delegated events section.