The jurisdiction of the chancery court in suits for divorce shall be confined to the following cases:
Where one (1) of the parties has been an actual bona fide resident within this state for six (6) months next preceding the commencement of the suit. If a member of the armed services of the United States is stationed in the state and residing within the state with his spouse, such person and his spouse shall be considered actual bona fide residents of the state for the purposes of this section, provided they were residing within the state at the time of the separation of the parties.
In any case where the proof shows that a residence was acquired in this state with a purpose of securing a divorce, the court shall not take jurisdiction thereof, but dismiss the bill at the cost of complainant.