A sign protesting a recent North Carolina law restricting transgender bathroom access adorns the bathroom stalls at the 21C Museum Hotel in Durham, North Carolina May 3, 2016. Jonathan Drake/Reuters SALEM, Ore. (AP) — Oregon has become the first state in the U.S. to allow residents who don't identify as male or female to mark their gender as "not specified" when they apply for a driver's license, learner's permit or identity card.

The rule went into effect Monday. It comes after the mayor of Washington, D.C., said the district was the first jurisdiction to offer the option late last month.

Oregon's Driver and Motor Vehicle Services said the new rule emerged after a judge last year allowed a Portland resident to legally change to "non-binary" gender.

The DMV said it studied state laws, updated computer systems, worked with law enforcement and the courts, and changed administrative rules to comply with the court order.

California lawmakers also are considering adding a third gender option on state IDs.