var form = $(this).closest('form'); code example Example: jquery get closest form $( this ).closest( "form" )