A federal judge in Colorado denied on Monday a motion from two electors who want to avoid voting for the presidential candidate who won the state's popular vote in an effort to keep Donald Trump Donald John TrumpREAD: Cohen testimony alleges Trump knew Stone talked with WikiLeaks about DNC emails Trump urges North Korea to denuclearize ahead of summit Venezuela's Maduro says he fears 'bad' people around Trump MORE out of the White House.

According to ABC 7 Denver, Judge Wiley Daniel said granting the injunction to allow electors to vote in the Electoral College out of sync with the popular vote would "undermine" the electoral process.

He advised the plaintiffs to try to change state law if they were unhappy with how the election shook out.

Though Daniel rejected the request for a preliminary injunction, the lawsuit — which challenges a state law requiring electors to vote for the winner of the state’s popular vote — is still pending in federal court.

Hillary Clinton Hillary Diane Rodham ClintonREAD: Cohen testimony alleges Trump knew Stone talked with WikiLeaks about DNC emails County GOP in Minnesota shares image comparing Sanders to Hitler Holder: 'Time to make the Electoral College a vestige of the past' MORE won Colorado’s Electoral College votes on Nov. 8. But depending on the result of the lawsuit, similar laws in 28 other states — including several in which Trump won the popular vote — could be in jeopardy.

ADVERTISEMENT

The two Democratic electors hope to persuade Republican electors in other states to vote for a third-party candidate to keep Trump from receiving the necessary 270 votes.

Trump's lawyer, in a filing to the court, wrote Monday that the lawsuit threatened to "undermine" the results of the election.

“Of course, President-elect Donald Trump and Vice President-elect Mike Pence Michael (Mike) Richard PenceVenezuela's Maduro says he fears 'bad' people around Trump 'And the award for best political commentary by an Oscar nominee goes to...' UN nuclear watchdog: Iran maintains compliance with 2015 pact MORE have more than enough electoral votes to secure their respective offices,” wrote attorney Christopher Murray in a filing submitted to the court, as reported by Politico.

“Plaintiffs’ lawsuit, however, threatens to undermine the many laws in other states that sensibly bind their electors’ votes to represent the will of the citizens, undermining the Electoral College in the process. That is why the President-elect and his Campaign seek to intervene in this case.”