Members of a same-sex couple who enter into a marriage in this State consent to the jurisdiction of the courts of this State for the purpose of any action relating to the marriage, even if one or both parties cease to reside in this State. A court shall enter a judgment of dissolution of marriage if, at the time the action is commenced, it meets the grounds for dissolution of marriage set forth in this Act.
750 ILCS 5/220