In an action or motion, founded on contract, against two or more defendants, although the plaintiff may be barred as to one or more of them, yet he may have judgment against any other or others of the defendants, against whom he is not so barred.
Va. Code § 8.01-442