Opinion by
Beaver, J.,The right of appeal from the judgment of a Justice of the Peace is statutory. The mode of appeal, the time of its entry and what is to be tried therein are set forth specifically in section 4 of the Act of March 20, 1810, 5 Sm. L. 161, which provides : “That upon any such appeal from the decision, determination or order of two Justices of the Peace to the Court of *14Common Pleas or Court of Quarter Sessions in any county, the cause shall be decided in such Court on its facts and merits only and no deficiency or form of substance in the record or proceedings returned nor any mistake in the form or name of the action shall prejudice either party in the court to which the appeal shall be made.” “The words two Justices is evidently a mistake made in transcribing the act, because it contains no provision for an appeal from the Justices and the section is especially regulating the appeals from one Justice under the hundred dollar act, as it is called; but it has been expressly decided that this proviso relates to appeals from one Justice only: Comfort vs. Leland, 3 Wharton, 81; Gue v. Kline, 13 Pa. 60.” It has been held, however, (Township of Moreland v. Gordner, 109 Pa. 116) : “It is true, on an appeal from the decision of a Justice of the Peace to the Common Pleas the statute provides that the cause shall be decided in the said Court on its facts and merits only and no mistake in the form of the action shall prejudice either party in the Court to which the appeal shall be made. This, however, assumes that the Justice of the Peace had jurisdiction of the cause of action:” Diehm v. Snell, 119 Pa. 316.
Certiorari, on the other hand, is a common law writ. “Upon certiorari to a Justice the only thing before the Court is the regularity of the proceedings, as shown by the record, and where the Justice has jurisdiction of the subject matter and there is no evidence of misconduct on his part, there can be no reversal of the judgment upon the facts or the law:” 10 P. & L. Digest of Dec. 17, 611, 1903, 1915. “The evidence before the Justice cannot be considered by the Court, and, although it is sent up by the Justice, it forms no part of the record and will not be considered 10 P. & L. Dig. of Dec. 17, 611, 1918-1922.
There is, therefore, a clear and manifest difference which has often been pointed out between an appeal from the judgment of a Justice of the Peace and a writ of certiorari to bring up his record. If there be any irregularity in the proceedings, the remedy is by certiorari. If a trial upon the merits is desired, an *15appeal is the proper remedy: Gingrich v. Sheaffer, 16 Pa. Superior Ct. 299.
In the case under consideration the Justice before whom the case was tried undoubtedly had jurisdiction of the cause oí action. The Justice was elected for and resided in the Township of Towanda. After the issuing of the summons, which presumably and according to his testimony was properly issued in the township where he resides, the trial was had in the Borough of Towanda where he has his law office. After the trial at which the defendant appeared and was heard.upon the merits, judgment was entered for the plaintiff, from which the defendant appealed. After a trial upon the merits in the Court below, the defendant raised the question of the jurisdiction of the Justice, so far as the trial before him was concerned, alleging that, having heard the case in his law office in the Borough of Towanda and not in the Township of Towanda where he resided and within which his jurisdiction was confined, so far as the issuing of process and the trial of causes were concerned, the judgment was a nullity and the plaintiff could not recover in the trial on appeal in the Common Pleas.
The facts of the case were submitted to the jury who found a verdict for the plaintiff. At the close of his charge, the trial judge in the Court below said: “We reserve for further consideration and determination the question as to whether or not the action of the Justice was warranted and legal and whether we have jurisdiction to dispose of this case.” Subsequently, upon the argument of a motion for judgment upon the verdict, the Court entered the following order: “We, therefore, think that this verdict must be set aside and the case dismissed, and it is so ordered, and rule to show cause why judgment should not be entered on verdict discharged.” This order is assigned for error in various forms, but raises the only question involved in the case. It is true, as previously pointed out, that advantage may be taken of the lack of jurisdiction at any time in the course oí judicial proceedings, and this has been held to be permissible, *16even in an Appellate Court; but such lack of jurisdiction must be fundamental. It must go to the root of the cause of action; but in this case there is no denial of the jurisdiction of the Justice over the subject matter; and, if we look at the evidence, there is no difficulty in reaching the conclusion that the summons was properly issued and the defendant properly brought within the jurisdiction of the Justice. He, therefore, had not only jurisdiction of the subject matter but of the parties as well. The irregularity in the case was hearing' the parties, whether for their convenience or not, outside of his jurisdiction. This was an irregularity of which the defendant was bound to take advantage by a writ of certiorari. Having appealed, he waived the irregularity and was to be heard only upon the facts and merits of the case. The Court below, therefore,, erred in overruling the motion for judgment upon the verdict.
After verdict, as appears by the record, the Attorney for the defendant moved for and the Court granted leave to move for a new trial and file reasons therefor within ten days after question reserved by the Court is disposed of. The Court, having dismissed the case, this motion for a new trial has never been disposed of and we are asked, in case of a reversal, to return the record, in order that this may be done. For this purpose and to the end that the record may be regular upon its face, we make the following decree: The order of the Court, setting aside the verdict and dismissing the case and discharging the rule to show cause why judgment should not be entered on the verdict is reversed and the record is remitted to the Court below, in order that judgment may be entered upon the verdict, unless good cause be shown to the contrary.