Thе first questions for decision in this case are as to whom the action should be properly brought against, and where. In
Crowell
v.
Crowell,
190
Ga.
501, 504 (
In
Walker
v.
Steele,
206
Ga.
674 (
*449 Applying the ruling in the Crowell case to the instant case, the illegal detention was at the place of residence of the father, under the allegations of the petition, and the writ of habeas corpus brought by the mother against him to obtain full time custody of their child should be brought in the county of his residence.
Does the petition allege sufficient facts to show that the court had jurisdiction of the defendant Donald Dutton? “All necessary jurisdictional facts must be clearly and distinctly set out in the petition, and their absence mаy be taken advantage of by demurrer.”
Ocilla Southern R. Co.
v.
McAllister,
20
Ga. App.
400, 401 (
But the petitioner contends that, since the defendants appeared in court with the child on the day set for hearing, they thereby waived any objection to the court’s lack of jurisdiction, and cite as authority for this contention,
Simmons
v.
Georgia Iron &c. Co.,
117
Ga.
305 (5) (
The petition fails to show that the defendants Mr. and Mrs. Charlie Dutton, Sr., have any intеrest in the minor child except insofar as they might have its possession with the permission of their son, Donald Dutton. It is alleged that the petitioner assumes that the child is in the possession of Mr. and Mrs. Dutton by the consent of Donald Dutton. The order of *451 April 30, 1955, wherein custody of the child was awarded to the petitioner and Donald Dutton alternately every two weeks, provided that delivery of the child to the grandparents at their home would be a sufficient compliance of delivery to the other party. It is not alleged that Mr. and Mrs. Dutton have refused to deliver thе child to the petitioner as provided by the order of April 30, 1955, or that they have refused to deliver the child to its father, or have in any way attempted or sought to exercise any control over the child. It is alleged that they have been requested to surrender to the petitioner “the full-time possession” of the child and have refused to do so, but this would not make thеm proper parties to this habeas corpus proceeding. They have no right to the full-time possession of the child themselves and have no right or power to surrender such possession to the petitioner or anyone else. The legal custody, control, and possession of the child for the purpose of this proceeding by the mother to obtain exclusive custody of the child is solely in the father, and the petition fails to show that Mr. and Mrs. Dutton have any interest in the subject matter of the case that would authorize them to be joinеd in the writ against the father. Consequently, the trial court erred in overruling the special demurrers to the petition on the ground of misjoinder of parties defendant. Code § 81-304.
The action оf the trial court in changing the custody of the minor child without hearing any evidence was clearly error. Code § 50-121 provides: “In all writs of habeas corpus sued out on account of the detention of a wife or child, the court, on hearing all the facts, may exercise his discretion as to whom the custody of such wife or child shall be given, and shall have power to give such custody of a child to a third person.” While the trial court has a wide discretion in passing on the evidence upon such a writ, a judgment without any evidence to support it is a gross abuse of his discretion and cannot be allowed to stand. See
Sheppard
v.
Sheppard,
208
Ga.
422 (3) (
Judgment reversed.
