This action was commenced in the circuit court in Butte county. Both of the defendants resided in McCook county, where the summons and complaint were served upon them on the 6th day of January, 1912. During the time allowed for answering, negotiations took place between plaintiffs and defendants looking to a compromise, of the matters in controversy. On the 5th day of February, 1912, the defendants, by their counsel, presented to the court an application to change the place of trial from Butte county to McCook county. No previous demand had been made upon the plaintiffs for a change of place of trial by consent; nor had ajiy notice of any kind been given to plaintiffs or fheir counsel that defendants would -make their application to the court. The court, believing the application to be -regular, and without ascertaining whether, any previous demand had been made or any notice of the application had been given to the plaintiffs, *355granted the application by an order, which was filed with the clerk of courts in Butte county on the. 6th day of February, 1912. On the 5th day of February, 1912, but after the order transferring the case to McCook county had been made, the defendants prepared and served their answer on plaintiffs’ counsel at Belle Fourche, in Butte county. In the answer the venue of the case was laid in McCook county. Service of this answer was admitted in writing by plaintiffs’ counsel. The order transferring the case to McCook county was not served upon plaintiffs’ attorneys; nor is it contended that they were notified or their attention called to the fact of the transfer at the time they admitted service of the answer. On the 7th of February, 1912, plaintiffs’ counsel learned, for the first time and from the clerk of courts of Butte county, of the making and entry of the said order. Immediately thereafter they prepared and served on defendants’ counsel a notice of motion to vacate and set aside the order made by the court on the 5th day of February, 1912, upon the ground “that the court had no jurisdiction to make the said order, for that the defendants had neither of them, prior to the making of the said order, made a demand in writing that the place of trial of said action be changed; nor had the defendants made or served any motion, or notice of motion, for an order changing the place of trial.” This motion came on for hearing before the court on the 28th day of February, when the court made and entered an order whereby the previous order of February 5th was vacated and set aside, and ordering that the place of trial of the said cause remain the same as though said former order had not been made. It is from this latter order that this appeal is taken.
[1] The appellants strenuously contend that the court had jurisdiction to make the order of February 5th, and that it was therefore error for the court to make the subsequent order setting it aside. Whether appellants are right in their contention or not depends upon the construction to be put upon the first clause of section 102, Code Civ. Proc., as amended by chapter 283, § 2, of the Laws of 1909. It reads as follows: “If .the county designated for that purpose in the complaint be not the county in which the defendant resides, -the action may, notwithstanding, be tried therein unless the defendant, befpre the time for answering expires, demand in writing that the trial be had in the county in which he *356resides and the place of trial be thereupon changed by the consent of the parties or by the order of the court, as provided in this section.” The language used is not as clear as it might be; but, fairly considered, we believe that it was the intent of the framers of the law that, when a defendant believes the venue of a cause is not laid in the proper count}'-, and he wishes it changed to the proper county, it is his duty first to make a written demand upon the plaintiff to change it accordingly. If plaintiff consents to the change, he may indorse such consent on the demand or sign a stipulation to that effect, and -the court will direct the change without further proceeding. On the other hand, if plaintiff refuses to give such consent, it then becomes incumbent upon the defendant, and before the time for answering expires, -to make his application to the court. But this must be made in the regular way, either by motion or order to show cause, and after due and timely notice thereof to the plaintiff. There is nothing in the language of the statute to -take the case out of the general rule, or to indicate that the proceeding in this matter is to be different from that governing ordinary motions or orders to show cause, and, in order to give the court jurisdiction, it is necessary that the plaintiff be given timely notice and an opportunity to be heard and rebut defendant’s showing; if he can.
[2] While they do not concede this to be the correct rule, appellants strenuously contend that it is not applicable to the case at bar, for two reasons: 'First, because.they claim that plaintiffs entered a “general appearance” in the case after the order changing the place of trial had-been made; and, second, that, because of pending negotiations for a compromise settlement, they were prevented from making their application before the expiration of the time for answering. There is no merit in either of these contentions. The only act relied upon by appellants as constituting a “general appearance” after the transfer was made was the admission of service, by plaintiffs’ counsel, of appellants’ answer in which the venue of the cause was laid in McCook county. Appellants do not claim that any notice of this order had been given to plaintiffs’ counsel, or that their attention was called to the fact that in the answer the venue of the cause was laid in McCook county, or that •they had any knowledge that any such order had ever been made. On the other hand, it is affirmatively shown that neither the plain*357tiffs nor their counsel had any knowledge whatever of the order for two days after the admission of the service of the answer. This certainly does not -bring them within the well-known rule that a general appearance, made with knowledge of a defect in the proceeding, amounts'to a waiver-of such -defect; neither do the pending negotiations for a settlement furnish appellants with any excuse for not having made the proper demand and given plaintiffs notice of their application for relief to the court. Such demand and application would have in no wise interfered with or prpventecl such negotiations or settlement; but, even if they had, there was still sufficient time to have made the application in the regular way. All negotiations came to an end on the 3d of February. Appellants could then have made their demand, and, if refused, they could have given notice of their application to the court for a transfer of the case, or procured an order to show c^use why the change should not be made by the court.
[3] It is not necessary that the 'application for a change of venue be heard or disposed of within the time for answering. If the application is made within that time, it is sufficient. Appellants could have served their notice of application and answered as in Butte county. The motion could 'have been brought on as -soon as it could have been heard by the court, and, if -the change had been ordered, the answer would have been transferred to McCook county, with the other papers in the case.
No error appearing in the record, the order appealed from is affirmed.