On petition for rehearing, appellants, in addition to the arguments already advanced, insist that the statute permitting attachment only in the absence of security has no application to an indorser of a secured promissory note. Conceding that this were true, it could have no application to the facts here. Appellants did not sue as indorsers but they sued upon the secured contract between the immediate parties, pleading themselves the owners and holders of the particular note, and praying enforcement of all its terms, including the payment of attorney's fees. They stand, therefore, in the shoes of the original payee holding mortgage security. They have seen fit to come into an Idaho court, seeking an ancillary remedy under Idaho laws upon a contract undertaken in Iowa. The Idaho statute imposes conditions. Before the remedy can be available, these conditions must be met. The incident condition is that the debt be unsecured. The situs of the security is therefore immaterial. The fact that the security lies in Iowa cannot strip the debt of its admitted attribute. To the contention that the statute has no extraterritorial operation, we assent. As was said in Walbridge v. Robinson, 22 Idaho 236,125 P. 812, 43 L.R.A., N.S., 240:
"Every statute is confined in its operation to the persons, property, rights, or contracts, which are within the territorial jurisdiction of the legislature which enacted it."
Here, the parties are before the court, their respective rights and agreements are disclosed by the court, property within the court's jurisdiction is sought to be attached, and *Page 357 the court asks the creditor: "Have you security?" What can the answer be but "Yes"? We have held that C. S., sec. 6949, does not prohibit an independent suit on a mortgage debt where the security is without the state. (Canadian Birkbeck etc. Co. v.Williamson, 32 Idaho 624, 186 P. 916.) Because the creditor may so sue, it does not follow that he may attach. Section 6949 applies only to mortgage securities: it has no reference to any other species of security. One who holds other security by way of lien or pledge may sue direct without foreclosure. (Jones v.Evans, 6 Cal. App. 88, 91 P. 532, 534.) But he may not attach, for, having security, he is barred by the statute. We do not think the legislature ever contemplated excluding from the attachment statute securities without the state. Endless confusion and prejudice to resident citizens would result. A nonresident creditor holding collateral could attach a resident's property while a local creditor so secured would be denied the remedy. The mortgagee of a band of sheep in Utah could attach his debtor's Idaho property to the discrimination of creditors holding security in Idaho. No such preference of one creditor over another could have been intended. There is no force in the argument that the rule announced in Hill v.Grigsby, 32 Cal. 55, has been rendered inapplicable by Feltonv. West and the later decisions cited. In the Grigsby case, an independent suit for purchase money secured by a vendor's lien in Nevada was entertained, the court saying that the vendor's position was similar to what it would have been had he taken a mortgage from the vendee. And at that time secs. 120 and 246 of the California Practice Act (Stats. 1851, pp. 68, 91), corresponding to C. S., secs. 6779 and 6949, were in full force and effect.
Petition denied.
Wm. E. Lee, C.J., and Budge, Givens and Taylor, JJ., concur. *Page 358