Donald Trump has selected US Senator JD Vance to serve as his vice presidential running mate, as the Republican Party officially nominated the former president as its 2024 presidential nominee at the start of the party's national convention in Milwaukee.

"As Vice President, JD will continue to fight for our Constitution, stand with our troops, and will do everything he can to help me MAKE AMERICA GREAT AGAIN," Mr Trump wrote on his Truth Social platform.

The four-day convention opened in downtown Milwaukee's Fiserv Forum two days after Mr Trump survived an assassination attempt in Pennsylvania, and hours after he secured a major legal victory when a federal judge dismissed one of Mr Trump's criminal prosecutions.

Mr Vance rose to prominence in 2016 after writing 'Hillbilly Elegy'

He is due to formally accept the party's nomination on Thursday and will challenge Democratic President Joe Biden in the 5 November election.

Mr Trump, 78, and Mr Biden, 81, are locked in what opinion polls show to be a tight election rematch.

Mr Trump continues to falsely claim that his 2020 loss to Mr Biden was the result of widespread fraud and has not committed to accepting the results of the election were he to lose again.

In the wake of the assassination attempt, Mr Trump said he is revising his acceptance speech to emphasise national unity, rather than highlight his differences with Biden.

"This is a chance to bring the whole country, even the whole world, together. The speech will be a lot different, a lot different than it would've been two days ago," Mr Trump told the Washington Examiner.

The would-be assassin's bullet clipped his right ear but did no major harm.

Blood coming from Donald Trump's ear as he shelters after being shot at a campaign rally

Mr Trump said that following the judge's decision dismissing the documents case, his other outstanding prosecutions should also be thrown out.

He is still awaiting trial on two cases - a federal prosecution in Washington and a Georgia state prosecution - for his attempts to overturn his 2020 election defeat.

Both of those cases could be hamstrung by a 1 July US Supreme Court ruling that he has immunity for many actions he took as president.

Mr Trump is due to be sentenced in New York in September for trying to cover up a hush money payment to adult film actress Stormy Daniels in the weeks before his 2016 election victory.

"This dismissal of the lawless indictment in Florida should be just the first step, followed quickly by the dismissal of ALL the witch hunts," Mr Trump said on his Truth Social platform.

No place for violence

Mr Biden has tried to bring the temperature down after months of heated political rhetoric.

"There is no place in America for this kind of violence, for any violence ever. Period. No exceptions. We can't allow this violence to be normalised," Mr Biden said of the assassination attempt in a televised address from the White House yesterday.

The shooting on Saturday changed the discussion around the presidential campaign, which had been focused on whether Mr Biden should drop out due to concerns about his age and acuity following a halting 27 June debate performance.

Nearly two dozen of Mr Biden's fellow Democrats in Congress have called on him to end his re-election bid and allow the party to pick another standard bearer.

Joe Biden addressing the US in the wake of the attempted assassination on Donald Trump

The focus this week will be squarely on Mr Trump.

Having consolidated party control, Mr Trump could seize on the primetime opportunity to deliver a unifying message or paint a dark portrait of a nation under siege by a corrupt leftist elite, as he has done at times on the campaign trail.

Mr Trump has frequently turned to violent rhetoric in campaign speeches, labelling his perceived enemies as "vermin" and "fascists," and accusing Mr Biden without evidence of a conspiracy to undermine the US by encouraging illegal immigration.

Mr Biden has often warned that a Trump victory would erode US democracy. However, some Republicans claim those comments helped create the conditions for the shooting.

Investigators said they have been unable to identify an ideology that may have inspired 20-year-old Thomas Matthew Crooks to shoot at Mr Trump from a rooftop outside a campaign event in Pennsylvania. Though Mr Trump escaped serious injury, a supporter was killed.

Mr Biden ordered an independent review of how the gunman, who was shot dead by agents, could have come so close to killing Mr Trump.

The Fiserv Forum in Milwaukee being prepared for for the Republican National Convention

Congressional investigators were also due to question the head of the US Secret Service, which is responsible for protecting the former president.

Republicans attending the party's convention said they were not inclined to reassess the party's traditional opposition to firearms restrictions.

"If someone runs someone over with a car, they don't ban cars," said Melanie Collette, a delegate from New Jersey. "If someone stabs somebody, they don’t ban knives."