Skip to content

Instantly share code, notes, and snippets.

@lukemorton
Created January 24, 2011 00:53
Show Gist options
  • Save lukemorton/792635 to your computer and use it in GitHub Desktop.
Save lukemorton/792635 to your computer and use it in GitHub Desktop.
event looping
<form>
<div id="custom-input">
<!-- slider html or something -->
</div>
<input type="reset" />
</form>
<script>
$(function () {
$('form').reset(function () {
$('#custom-input').trigger('reset');
});
});
</script>
$('form').reset(function () {
$('.custom-input').triggerHandler('reset');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment