When residents of the State go out of the State for the purpose of obtaining a divorce for causes that occurred here while the parties lived here or that do not authorize a divorce here, and a divorce is thus obtained, the divorce is void in this State. In all other cases, a divorce decreed out of the State according to the law of the place, by a court having jurisdiction of the cause and of both parties, is valid here.
The validity of a custody determination contained in or ancillary to a valid divorce decree granted by another state is governed by the Uniform Child Custody Jurisdiction and Enforcement Act.