In this case there exists a question of jurisdiction which, although not raised or decided in the court below, demands our attention at the threshold of appellate review.1
The facts bearing on this jurisdiction are these: On December 29, 1964, plaintiff commenced an action in the Municipal *13Court of Moorp'ark-Camárílló'. Judicial District, Ventura County, California,2 to recover a balance of $3,750 allegedly due on two promissory notes. On January 14, 1965, defendant filed an answer in which he admitted the execution of the notes pursuant to an agreement for the sale and purchase of corporate stock of Thousand Oaks Broadcasting Company. Defendant admitted nonpayment on the notes, but denied any indebtedness to plaintiff.
On January 14, 1965, defendant filed a cross-complaint naming plaintiff and plaintiff’s assignor of one of the promissory notes as cross-defendants. As cross-complainant he impleaded an agreement whereunder he was to purchase from cross-defendants 1,092 shares of stock in Thousand Oaks Broadcasting Company (operator of a federally licensed radio station); that he paid them $12,750 in cash and executed the two promissory notes for the balance of the purchase price; that the agreement required approval of the Federal Communications Commission because it involved the transfer of “control” of the subject corporation within the meaning of applicable federal laws;3 that no such approval was sought or obtained; that as a result the agreement was unenforceable and in violation of public policy. The cross-complaint sought judicial rescission of the agreement and for restitution in the total amount of $12,750 theretofore paid to cross-defendants.
The minutes of the municipal court show that on May 3, 1965, the court granted a motion to transfer the action to the Superior Court of Ventura County.
Prior to trial a document entitled “Stipulation of Facts,” dated October 18, 1965, was signed by counsel for both parties. One of the stipulations was that “. . . the cross-complaint seeking rescission be dismissed and the special defenses of lack of consideration and illegality of contract be added to the answer on file by defendant. ’ ’
A judgment, which was entered on November 22, 1965, recited that the cause came on regularly for trial on October 19, 1965; that “The Cross-Complaint against plaintiff Alfred R. Linnick and Seymour Blonder having been dismissed by stipulation, and the special defenses of lack of consideration and illegality of contract having been added to the answer on *14file by defendant by stipulation . . and oral and documentary evidence having been introduced, and written findings of fact and conclusions of law having been waived, the court proceeded to render judgment that the agreement being illegal, . the court will not lend its assistance to either party . . . and leaves the parties where it finds them. Each party is to bear his own costs. ’ ’ (Italics supplied.)
On February 9, 1966, the trial court denied a motion for new trial which had been timely presented. This appeal from the judgment followed.
Since the transfer of the action from the municipal court to the superior court was based on a cross-complaint which sought relief available only in the superior court, the question is: Does the voluntary dismissal of such cross-complaint before trial and before any adjudicatory action thereon operate to divest the superior court of jurisdiction of the only remaining claim, namely, one for money in the pleaded amount of $3,750 ?
There are numerous decisions holding that failure to recover judgment in an amount within the statutory jurisdiction of the superior court does not deprive the court of jurisdiction. The fifth paragraph of section 396 of the Code of Civil Procedure expressly states that nothing in its provisions for transfer “. . . shall be construed to require the superior court to transfer any action or proceeding because the judgment to be rendered, as determined at the trial or hearing, is one which might have been rendered by a municipal or justice court. ...” (Italics supplied.)
Keenan v. Dean, 134 Cal.App.2d 189 [285 P.2d 300], dealt with a factual situation similar in many respects to the present ease. There plaintiff commenced his action in the municipal court for unlawful detainer and $205 in rent arrearages. Defendant filed a cross-complaint charging libel and asking for $50,000 damages, whereupon the action was transferred to the superior court. The latter court granted a motion striking the cross-complaint. On appeal from that order, the Court of Appeal observed as follows (p. 192) : ”. . . All that remains to be tried is the original action properly filed in the municipal court. When that fact is called to the attention of the superior court, under the mandatory provisions of section 396 of the Code of Civil Procedure, it will have to return the case for trial to the municipal court. ’ ’ A short time later the writer of the opinion in the Keenan case wrote a concurring opinion in the ease of Wexler v. Goldstein, 146 Cal.App.2d 410 [304 P.2d 41], wherein he *15retracted as an erroneous dictum the statement in the Keenan opinion to the effect that the provisions of section 396 were mandatory and gave the superior court no discretion to retain jurisdiction once it appeared that the judgment was one which might have been rendered by a municipal court.
The majority opinion in the Wexler case analyzed the various provisions of section 396, and concluded that the test of discretion was whether the jurisdictional point had been “determined at the trial or hearing.” The court said (pp. 414-415) : “The next question is whether the order dismissing the second count of the cross-complaint was a part of the trial within the meaning of said fifth paragraph. Up until the dismissal of the second count, defendant could have filed an amendment thereto and thus kept it alive. The determination which caused it to be no longer a pleading in the case was the nunc pro tunc order of dismissal. The legal situation then became the same as though the plaintiffs had actually moved, at the start of the trial, to have such count dismissed for failure to amend. It would thus follow that the first time it appeared that the judgment to be rendered was within the jurisdiction of the municipal court was when the superior court 1 determined at the trial’ to dismiss the second count. This being so, the superior court had the right to either transfer the cause back to the municipal court or go ahead and complete the trial. The trial was completed and a judgment rendered upon the merits. Thus, the very object of the fifth paragraph of section 396 was achieved.”
Sellery v. Ward, 21 Cal.2d 300 [131 P.2d 550], is another case in which the jurisdictional amount was reduced during the course of trial as a result of certain comments by the court which prompted the plaintiff to abandon certain causes of action.
The situation in the present case differs from the Keenan, Wexler and Sellery cases in this one controlling respect, namely, the lack of jurisdiction developed, not as a result of judicial action at trial but as a result of a stipulation of counsel before trial. This distinction compels the conclusion that the trial judge did not have, much less did he knowledgeably purport to exercise, any discretion to retain jurisdiction.4
*16The judgment is reversed with directions to the superior court to transfer the action to the Ventura County Municipal Court for retrial on such pleadings and evidence as that court determines to be proper.
Files, P. J., and Jefferson, J., concurred.