Donald Trump has predicted the Republicans will "do well" in next year's midterms as he distanced himself from recent losses in Alabama and Virginia.

"Remember, Republicans are 5-0 in Congressional Races this year. The media refuses to mention this," the US President tweeted.

"I said Gillespie and Moore would lose (for very different reasons), and they did. I also predicted 'I' would win. Republicans will do well in 2018, very well!"

The tweet came after Roy Moore and Ed Gillespie, two Republican candidates Mr Trump endorsed, were defeated in Alabama and Virginia respectively.

Mr Moore recently refused to concede the senate election despite Mr Trump calling on him to admit defeat.

The election saw Alabama elect its first Democratic senator since 1992.