しかし、私の一生の間、フォームが送信された後、どのように多くのDOM操作を行うかを理解することはできません。
$('.save-form').each(function() {
$(this).ajaxForm({
beforeSubmit: function() {
//
},
success: function(data) {
//
}
});
});
私は試しまし$(this).find('div').hide();
たが、役に立ちませんでした。
HTML:
<form method="post" class="save-form">
<!-- inputs are here -->
<div>I want to hide this as well as the parent, "save-form".</div>
</form>
<form method="post" class="save-form">
<!-- inputs are here -->
<div>I want to hide this as well as the parent, "save-form".</div>
</form>
<form method="post" class="save-form">
<!-- inputs are here -->
<div>I want to hide this as well as the parent, "save-form".</div>
</form>
はい、「save-form」のインスタンスが複数あります