Created
January 7, 2013 14:15
-
-
Save sdvg/4475277 to your computer and use it in GitHub Desktop.
make form action "reset" work for chosen-fields
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//make form action "reset" work for chosen-fields | |
$('form input[type="reset"]').click(function(){ | |
$(this).closest('form').find(".chzn-select").val('').trigger("liszt:updated"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment