I'm using this form plugin
But for the life of me, I can't figure out how to do much DOM manipulation after the form has been submitted.
$('.save-form').each(function() { $(this).ajaxForm({ beforeSubmit: function() { // }, success: function(data) { // } }); }); I've tried $(this).find('div').hide(); but to no avail.
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> Yes, I have more than one instance of "save-form"