Groups such as the English Democrats, the BNP, the National Front, Liberty GB and English nationalist party, English Independence, all failed to secure at least five per cent of the vote which means under Electoral Commission rules they lose their £500 deposit.
Their defeat was seen as a victory for the type of politics Ms Cox championed - including EU membership and welcoming refugees - with her husband Brendan tweeting that it was “great to see all the purveyors of hate lose their deposit”.
In her maiden speech to Parliament in 2015, Ms Cox had said: “While we celebrate our diversity, what surprises me time and time again as I travel around the constituency is that we are far more united and have far more in common with each other than things that divide us.”
Ms Brabin, a former Coronation Street actress, vowed to continue the work of her predecessor who had championed EU membership and the rights of refugees.
In her victory speech, the 55-year-old, who was born in Batley, described her election as "bittersweet" but said: "We have shown that we stand together with one voice choosing unity and hope.
"I am delighted more than anything that the fringe parties have lost their deposits.
Jo Cox tributes - in pictures
Show all 20
"It is a positive endorsement from the people of Batley and Spen about what they are looking for and what they want from me, which is unity and bringing people together."
Join our commenting forum
Join thought-provoking conversations, follow other Independent readers and see their replies