New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reset form data when closing event #269
Comments
Here is a example from the official document : $('#purchase-form').on($.modal.BEFORE_CLOSE, function(event, modal) {
clear_shopping_cart();
}); Which mean when a $('#purchase-form').on($.modal.BEFORE_CLOSE, function(event, modal) {
$('input[name="amount"]', $(this)).val('');
}); Which mean when a Hope this will helps. Cheers! |
Hi, Edit: I suppose this might be linked to #266 It seems to me that $.modal.*_CLOSE do not fire with ajax... Here is my setup
then, let's check (lines 305, 311 (code for line 317 is omitted - the same with the other property)
and the browser complains:
|
If you check the demo, the |
hi
i want to Reset form data when closing event.
Can you answer me how?
The text was updated successfully, but these errors were encountered: