This is an action by respondent to recover from appellant $15,718.33 and interest, upon three alleged causes of action. From an order of the court denying appellant’s motion to vacate the judgment and set aside the default, this appeal is taken.
*461Upon the filing of the complaint, summons was issued and delivered to the sheriff, and in his return thereon he certified that he personally served the summons upon appellant, “by delivering to and leaving with W. B. Amsbary, personally, the statutory agent of said defendant, C. C. Taft Company, a corporation, in the county of Twin Falls, on the twenty-second day of January, A. D. 1919, a copy of said summons; and that to the copy so delivered to and left with said W. B. Amsbary as the statutory agent of the defendant C. C. Taft Company, a corporation, was attached a copy of the complaint referred to in said summons. “. . . . that the said W. B. Amsbary is the authorized agent of said defendant corporation upon whom process issued by authority of law may be served as shown by the designation of agent on file in the office of the clerk of the above entitled court.”
On February 10, 1919, appellant, by its attorneys, filed a special appearance and moved the court to quash the service of summons for the reason that “the defendant C. C. Taft Co., a corporation, is a corporation organized and existing under and by virtue of the laws of the state of Iowa, and not engaged and is not now engaged in transacting business within the state of Idaho within the purview of the statutes of the said state of Idaho relating thereto; that the nature of this action, as disclosed by the complaint, is personal in its nature and does not fall within the sections of the statutes of the state of Idaho authorizing service outside the state or by publication; that by reason of the foregoing, this court has acquired no jurisdiction of the defendant.”
On February 12, 1919, upon request of respondent, a clerk’s default was entered, and on February 22, 1919, judgment was entered by the court, in favor of respondent, upon its third cause of action, for $4,000, with interest and costs.
On March 7, 1919, appellant filed a motion to set aside the judgment entered by default against it, and all sub*462sequent proceedings therein, for the reason, “that upon the date upon which default was entered, to wit, the twelfth day of February, 1919, a special appearance of the defendant, the C. C. Taft Company, had been duly served and filed and was and is a matter of record in said action, and undisposed of.
“That the default was improperly and prematurely entered.”
In support of this motion, an affidavit was filed by one of appellant’s attorneys, setting forth the above facts, and that appellant has no officer, representative or managing agent in Idaho, and on the hearing a certificate of the Secretary of state of Idaho was filed, dated February 26, 1919, to the effect that appellant’s right to do business in Idaho was forfeited on December 2, 1918.
Appellant’s motion was denied and overruled on March 25, 1919, and appellant assigns as error the action of the court in this regard.
It is urged on behalf of appellant that its appearance was special, for the sole purpose of challenging the jurisdiction of the court. The court could acquire jurisdiction over the person of appellant only by service of process upon it or by its voluntary appearance and submission. Appellant might have made a general appearance, thereby submitting its person to the jurisdiction of the court, or a special appearance as, it did, merely for the purpose of testing the sufficiency of the summons to bring it within the jurisdiction of the court. This latter procedure is a proper practice in attacking the validity of the service of summons, inasmuch as it enables the defendant to raise the question of the jurisdiction of the court as a preliminary issue, and to save an exception to any adverse ruling of the court thereon.
Respondent, on the other hand, contends, first, that the special appearance made by appellant did not operate to extend the time for answer or demurrer beyond that fixed in the summons, and that having failed to answer within *463the time so fixed the default was properly entered; second, that in any event appellant waived any question of jurisdiction by its motion to vacate and set aside the judgment by default; and, third, that the order appealed from is not an appealable order.
We think the correct rule, supported by the weight of authority and the better reasoning, is that where there is a proper motion by the defendant pending and undisposed of, it is improper for the plaintiff to take a judgment by default (Atchison, T. & S. F. R. Co. v. Lambert, 31 Okl. 300, Ann. Cas. 1913E, 329, and note at p. 331, 121 Pac. 654), unless the determination of the motion either way could not affect the right of plaintiff to proceed with the cause.
Properly speaking, a judgment by default is one taken against a defendant, who, having been duly summoned or cited in an action, fails to enter an appearance (1 Black on Judgments, 2d ed., see. 80, p. Ill), though the term is usually extended to include judgments of nil dicit. The distinguishing feature of such a judgment is that it follows upon the negligence or omission of the defendant, and the rule appears to be firmly established that when an answer or other pleading of a defendant, raising an issue of law or fact, is properly on file in the case, no judgment by default can be entered against him, but that such answer or other pleading must be disposed of by motion, demurrer, or in some other manner. (Black on Judgments, supra, sec. 86, p. 122, note 59.)
Bearing in mind this general rule of law, we are not disposed to extend the application of the statute defining the right of plaintiff to a default judgment, beyond its terms and the obvious purpose for which it was enacted. This statute, C.' S., see. 6832, provides that: “Judgment may be had .... if no answer has been filed with the clerk of the court within the time specified in the summons, or such further time as may have been granted.....”
*464The question then arises: What is an answer within the meaning of C. S., sec. 6832?
Under our statute, C. S., sec. 6694, an answer may contain a general or specific denial of the material allegations of the complaint, and a statement of any new matter constituting a defense or counterclaim.
It may be urged that the filing of a special appearance attacking the service of summons, while it raises a question of law, is not an answer within the meaning of the provisions of C. S., sec. 6832.
C. S., sec. 6686, inter alia, provides: “The defendant may demur to the complaint within the time required in the summons to answer,” and a demurrer is an answer within the meaning of the provisions of C. S., see. 6832. (Smith v. Clyne, 16 Ida. 466, 101 Pac. 819; Culver v. Mountain Home Electric Co., 17 Ida. 669, 107 Pac. 65.) Default cannot be taken while there is a demurrer on file and undisposed of. (Oliphant v. Whitney, 34 Cal. 25.) A demurrer raises questions of law. So does a special appearance. Sec. 6832 requires an answer to be filed within the time fixed in the summons, or such further time as may have been granted. See. 6686 limits the time to demur within the time required in the summons to answer, but does not extend the time to answer. But in construing sec. 6832, a demurrer has been held to be an answer within the meaning of said section. It is not inconsistent or illogical to hold the filing of a special appearance is an answer, within the meaning of see. 6832, and must be disposed of before default can be legally entered.
In Smith v. Clyne, supra, this court held that: “A defendant, who has filed a demurrer or motion addressed to the complaint, is not in default until after such demurrer and motion are disposed of.”
And in Culver v. Mountain Home Electric Co., supra, it was held that: “The filing of a demurrer to a complaint presents an issue of law which the court is required to decide, and the defendant is not in default until such *465issue of law is disposed of, and it is error for the court to permit default to be entered or to enter judgment against the defendant until such demurrer is overruled.”
While in the former case a general appearance was entered by demurrer and motion to strike portions of the complaint, yet this does not change the principle involved. The defendant had the right, under C. S., sec. 6832, to have his demurrer and motion to strike disposed of, and the questions of law raised thereby determined, before default could be entered against him, and where a defendant appeal's specially, attacking the jurisdiction of the court over him, we can see no logical reason why that question should not also be determined or waived before default is entered. The filing of a special appearance presents a question of law, and the court should be required to dispose of that issue before it assumes jurisdiction over the defendant.
While it is true that the demurrer is directed to the complaint, and the special appearance and motion to quash is aimed at the service of process, yet both present issues of law, vital to the rights of the defendant, and he should not be compelled to waive either by the failure of the court to pass thereon.
Our statute, C. S., sec. 6832, is copied from the California Practice Act of 1872, see. 585, which is a re-enactment of sec. 150, c. 5, p. 73, of the California Session Laws ° of 1851, and the California court holds that a demurrer is an answer within the meaning of their statute. (Oliphant v. Whitney, supra; Fletcher v. Maginnis, 136 Cal. 362, 68 Pac. 1015.) That court held, however, in Shinn v. Cummins, 65 Cal. 97, 3 Pac. 133, and McDonald v. Swett, 76 Cal. 257, 18 Pac. 324, that: “The pendency of the defendant’s motion ‘to dismiss, vacate, and set aside the pretended service of summons and copy of complaint’ did not extend the time specified in the summons for answering the complaint,” and this holding has been followed in other states which have adopted the California Practice Act. (Mantle v. Casey, *46631 Mont. 408, 78 Pac. 591; Pilant v. Hirsch, 14 N. M. 11, 88 Pac. 1129; Greenfield v. Wallace, 1 Utah, 189; Higly v. Pollock, 21 Nev. 198, 27 Pac. 895.) Since the decision of Higley v. Pollock, supra, the rule in Nevada has been changed by the addition of a sentence to the statute, defining the word answer as “any pleading that raises an issue of law or fact, whether the same be by general or special appearance.” (Esden v. May (Nev.), 135 Pac. 1185.)
It is apparent, then, that these courts recognize that the term “answer” as used in sec. 6832 is not used in the same narrow sense as in see. 6694, but that it also embraces a form of pleading which raises a question of law, that is to say, a demurrer, and yet, since the holding of the California court in Shinn v. Cummins, that court being “unable to discover any ground on which the judgment should be reversed,” these jurisdictions have consistently adhered to the view that the making of a motion to quash or set aside the summons does not extend the time within which to answer. If this is the correct rule, then there is no adequate procedure provided under our statute by which a defendant may challenge the jurisdiction of the court over him. The machinery of the court cannot be used as a means to compel a party to surrender to the jurisdiction of a court in the absence of a valid service. Since in the instant case the court neglected or refused, within the time fixed in the summons, to pass upon respondent’s motion to quash the service, it was compelled either to permit judgment to be taken against it and resist the enforcement of the judgment, or to submit to the jurisdiction of the court, or move as it did in this case to vacate the default and judgment, in order that its motion to quash the service of the summons might be passed upon.
While a motion to set aside a judgment, which is invalid for want of jurisdiction of the person of the defendant, based solely on such lack of jurisdiction, does not opérate as a general appearance or cure the defect of jurisdiction, yet the authorities are agreed that a motion which *467proceeds not only on the ground of want of jurisdiction of the person, but joins therewith any nonjurisdictional ground, is a general appearance. (Note, Ann. Cas. 1914C, pp. 696, 697, and cases there cited.) A motion in a cause based wholly on an alleged want of jurisdiction is not an appearance generally, or a waiver of any irregularity in the proceedings by which a party is attempted to be brought into court. (Cohen v. Trowbridge, 6 Kan. 385; Bishop v. Fischer, 94 Kan. 105, Ann. Cas. 1917B, 450, 145 Pac. 890.)
The substance of appellant’s motion, and the character of the relief asked for therein, are only to be regarded in determining the question whether its appearance was special or general. It is clear that appellant’s sole purpose was to ■challenge the jurisdiction of the court over it, and the relief sought is in no way inconsistent with a want of such jurisdiction. (Elliott v. Wirth, 34 Ida. -, 198 Pac. 757, at 760, and cases there cited.)
There is no merit in respondent’s contention that the order appealed from is not an appealable order. The order in question is a special order made after final judgment, and is appealable under the provisions of C. S., sec. 7152, subd. 2. (Duffield v. Ohnewein, 32 Ida. 732, 187 Pac. 541.)
In view of the foregoing, we hold that a special appearance and motion to quash the service of summons is an answer within the meaning of C. S., sec. 6832, that during the pendency of such motion the defendant is not in default, and that the trial court abused its discretion in this ease in refusing to set aside the default and judgment upon appellant’s motion.
This cause should, therefore, be reversed and remanded, with instructions to the trial court to vacate and set aside the default and judgment entered therein, and to pass upon appellant’s motion to quash the service of summons. It is so ordered. Costs are awarded to appellant.
McCarthy and Lee, JJ., concur. Rice, C. J., and Dunn, J., dissent.Petition for rehearing denied.