use the closest method on input jquery code example Example: jquery get closest form $( this ).closest( "form" )