— This is a criminal action originally instituted before Joseph H. Horton, justice of the peace, sitting as police magistrate for the village of Challis. The defendants were charged with violation of the anti-gambling ordinance of said village. The cause came on regularly for hearing before said justice of the peace acting as police magistrate, December 12, 1913. The defendants appeared in person and by counsel. A demurrer to the complaint was interposed, and after argument, was by the court overruled. Defendants then moved for a change of venue, which motion was denied. Whereupon the defendants demanded a jury trial, which was by the court refused.
The court thereafter proceeded with the trial of said cause. Testimony on behalf of the state was introduced, after which counsel for the defendants interposed a motion to discharge the defendants upon the ground that the evidence was insufficient to sustain a conviction, which motion was overruled. The defendants refused to introduce any testimony. After *188argument by counsel for respective parties, the court found the defendants guilty of the offense as charged in the complaint, and imposed a fine upon each of them in the sum of $25, and costs.
Immediately upon passing sentence, the attorney for the defendants gave notice of appeal from said judgment of conviction to the district court of the sixth judicial district for Custer county, Idaho. Said notice of appeal is dated December 12, 1913. On the same date a bond on appeal was given and approved.
On December 19, 1913, upon application of the defendants, a writ of review was issued by Hon. James M. Stevens, judge of the district court of the sixth judicial district of the state of Idaho. On January 20, 1914, a motion was duly made by W. W. Adamson, Esq., attorney for said city, to dismiss said writ upon the following grounds, to wit:
“1. That defendants have a plain, speedy and adequate remedy .at law by appeal.
“2. That the court had jurisdiction of the subject matter of the suit and parties, and therefore jurisdiction to make and enter the orders sought to be reviewed.
“3. That the defendants having given notice of appeal from the decision and judgment of conviction entered in the police court and thereafter having filed a bond on appeal, that they are therefore estopped from seeking a further remedy by writ of review.”
On January 28, 1914, said motion to dismiss the writ of review came on for hearing before said district judge, and after argument by counsel for respective parties, the motion to dismiss said writ was granted. Thereupon a notice of appeal to the supreme court from the order of the district court dismissing said writ of review was filed and served.
This appeal is from the judgment of the district court dismissing the writ of review.
It will be observed that on December 12, 1913, defendants gave notice of appeal to the district court of the sixth judicial district for Custer county and on the same date furnished a good and sufficient bond on appeal. Sec. 8320, Rev. Codes, *189provides for an appeal to the district court “from any judgment of conviction rendered in a criminal action by ... . justice’s court.” Sec. 8321, Rev. Codes, provides for the giving of a proper notice of appeal. Sec. 8324, Rev. Codes, provides: “The party appealing may, .... if he desires to be released from custody during the pendency of the appeal, or desires a stay of proceedings under the judgment until the appeal be disposed of, eater into a recognizance .... and that he will faithfully prosecute the same and render himself in execution of any judgment .... ” Sec. 8323, Rev. Codes, provides: “When an appeal is taken, the .... justice must immediately transmit to the clerk of the district court of the county, the complaint, notice of appeal, . . . . and any recognizance entered into by the defendant .... ” Sec. 2216, Rev. Codes, provides: “Appeals may be taken from the judgments of the police judge, in the same manner as appeals are taken from the judgments of justices of the peace in criminal cases.”
The appeal, therefore, having been properly taken by the defendants, as provided by the various sections of the' statutes cited, the jurisdiction of the justice acting as a police magistrate ceased and the jurisdiction of the district court attached. The cause having been transferred, by the act of the defendants, from the magistrate’s court to the district court, there was nothing to review, and the issuance of the writ of review on December 19, 1913, was a futile and idle act. Upon the giving of notice of appeal, it became the duty of said justice of the peace to immediately transmit to the clerk of the district court the files', etc., in the case. The magistrate’s court had lost jurisdiction and the case was then pending in the district court for trial de novo.
We have therefore reached the conclusion that the district court did not err in dismissing said writ of review. The judgment of the district court is affirmed.
Sullivan, C. J., and Morgan, J., concur.