1. appeal: waived by petition. 2. injunction : warranto?10 I. The plaintiff assigns error upon the ruling of the court upon the demurrer to the answer, and the order dissolving the injunction, and counsel have discussed these questions to some extent. We do not think it proper to consider these rulings. They were superseded by the amended and substituted petition. It is only necessary to say that the injunction was improvidently issued. The action was commenced by the county attorney in the name of the state, and there was no ground for an injunction, there being no proper parties to execute an injunction bond. It is trae that the names of certain persons were incorporated in the original petition or information as relators, but by consent of the parties their names were stricken out of the petition.
3. pleading : substituted petition. II. The only question properly presented upon this appeal is whether the court erred in sustaining the demurrer to the amended and substituted petition; and here we may say that all that part of the demurrer which attacks the petition upon facts set forth in the original petition must be ignored. The original petition was as foreign to any proper investigation of the legal sufficiency of the substituted petition as if the plaintiff had dismissed the original petition, and commenced a new action. Where a substituted pleading is filed in an action, the original may possibly be used as evidence against the party by reason of contradictory statements, or the like, but, on a demurrer to the substituted pleading, the two pleadings cannot be considered.
4. schools: district fnumto be elected, With these remarks as preliminary, we come to a determination of the question whether the substituted petition sets forth a cause of action. The material facts set forth in the petition are as f ollows: The independent school district of Le Grand is composed of certain territory in Marshall county, excepting a small part of the district, which is in Tama county. It was originally organized as a district *679having less than five hundred inhabitants, Six persons were acting as directors of the district in March, 1887, and the terms of two of said directors expired in March, 1888., Prior to March, 1888, the question was raised as to whether there were five hundred inhabitants in the district. At the election in March, 1888, part of the electors voted for one director, and the remainder voted for three; two of whom they claim were required by law to be elected, and the third was to fill a vacancy claimed to have been caused by the resignation of one of the “hold-over” directors. The party which voted for these directors was the victor at the polls, and three directors were declared to be elected, and they entered upon the duties of the office, It is averred in the petition as a fact that in March, 1888, and ever since that time, the population of the district has been less than five hundred, and not. more than four hundred and twenty-five, and that only one person should have been elected at said election, and that there was no resignation, and no vacancy to be filled.
It is provided by section 1802 of the Code that at the organization of independent school districts six directors shall be elected, two of whom shall hold the office until the first annual meeting thereafter, two until the second, and two until the third annual meeting, their respective terms of office to be determined by lot. But in districts having a population of less than five hundred there shall be three directors. Under this section of the law, a district of five hundred inhabitants or more is required to have six directors, and those of less than five hundred shall have three directors; and by section 1808 of the Code districts with the larger population are authorized to elect two directors each year thereafter, and all those having a population of less than five hundred shall elect one director each year. As we have sa.id, it is averred in the substituted petition that the district was originally organized as a district with less than five hundred inhabitants. But it is also alleged that for the year ending in March, 1888, there were six directors, and it is not claimed that all of them were *680not legally elected. This would imply that the population had increased so as to exceed five hundred. We then have this case: When the population of the district falls below five hundred, should the number of the directors be diminished accordingly? We think that under section 1808 of the Code, if the population be less than five hundred at the time of the election, two members should not be elected. Such seems to be the plain meaning of that section. There is no provision of the law for taking a census to ascertain the population of the district for the purpose of determining whether one or two directors should be elected. But, where the population is claimed to be less than that number, it is not at all difficult to ascertain that fact. It must be remembered that the averment of the petition that the population at the time of the election was less than five hundred is admitted by the demurrer. So far, then, as the present inquiry is concerned, we must regard that fact as conceded.
5. toomíiñy quo warranto: paities. One ground of the demurrer was that the district, or the inhabitants thereof, or the directors, are not made parties to the action. This was not at all necessary. The action is a civil action, in the nature of a quo warranto, to test official rights. It is plainly authorized by chapter 6, title 20, Code; and, if the averments of the petition be true, the election was illegal, because two directors were elected when the election of but one was authorized by law; and, as they are both incumbents by the same right, it cannot be detez’mined that one of them was lawfully elected, and the proceeding is properly directed against them as individuals. We think the demurrer to the substituted petition should have been overruled; and this disposition of the case renders it unnecessary to determine the motion to strike appellees’ abstract from the files. Reversed.