I have a web page with 3 forms on it. Not nested, just one after the other (they are almost identical, just one hidden variable that\'s different). A user will only fill i
i used the following method & it worked fine for me
$('#mybutton').click(function(){ clearForm($('#mybutton').closest("form")); });
$('#mybutton').closest("form") did the trick for me.
$('#mybutton').closest("form")