When default is made in the performance of any condition contained in a mortgage, the mortgagee or his or her assigns may proceed in the superior court of the county where the land, or some part thereof, lies, to foreclose the equity of redemption contained in the mortgage.