Skip to content

Instantly share code, notes, and snippets.

@oscardelben
Created February 16, 2012 08:58
Show Gist options
  • Save oscardelben/1843471 to your computer and use it in GitHub Desktop.
Save oscardelben/1843471 to your computer and use it in GitHub Desktop.
<form class="my_form">
<a class="my_link"></a>
</form>
<script type="text/javascript">
$('.my_form').live('ajax:success',
// this gets triggered when I click on my_link, I don't want that
)
$('.my_link').live('ajax:success',
// I want this to not trigger the my_form event
)
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment