Where one spouse is plaintiff in an action for divorce or to declare void a marriage that was not solemnized in the state, the residence of the other spouse in this state inures to the plaintiff's benefit and the action may be instituted if the other spouse is at the time of its commencement qualified as to residence to institute a similar action.
AS 25.24.090