A New Jersey Republican candidate who once derided the Women’s March in Washington has been defeated by a Democratic woman who was angered by his comment.

Incumbent John Carman was running to be re-elected as an Atlantic County Freeholder - a member of the county’s legislative body that has a term of three years - against Ashley Bennet.

The day after US President Donald Trump’s inauguration in January 2017, millions of people all over the world gathered to protest and march for gender equality in an organised Women’s March.

Mr Carman posted a meme on Facebook that day that read: “Will the women's protest be over in time for them to cook dinner?" and wrote a caption: “Just asking?”

He later said at an October county meeting with citizens that posting the meme was “bad choice” but that the women in his life were “strong and confident” enough to know it was just a joke and not to be offended.

One woman at the same October meeting brought a box of dry macaroni and cheese and told Mr Carman to “cook your own damn dinner.”

He actually apologised a few days later, saying that it became “obvious to me that I have hurt many people, men and women.”

However, the damage had been done as far as Ms Bennet was concerned.

Round-up: Women's March Protests 2017

The 32-year-old psychiatric emergency screener at Cape Regional Hospital in Egg Harbor Township had never run for office before, but decided to take up the mantle after she saw Mr Carman’s initial post.

She said she “was angry about [the Facebook meme], because elected officials shouldn’t be on social media mocking and belittling people who are expressing their concerns about their community and the nation.”

That was not Mr Carman’s only controversial move either.

Earlier this month he wore a jacket that displayed a badge of the Confederate flag, used by Southern rebels who fought to keep slavery alive during the US Civil War.

Thousands attend Women's March on Washington Show all 18 1 /18 Thousands attend Women's March on Washington Thousands attend Women's March on Washington Protesters gather outside the White House at the finish of the Women's March on Washington on January 21, 2017 in Washington, DC. Large crowds attended the anti-Trump rally a day after U.S. President Donald Trump was sworn in as the 45th U.S. president. Getty Thousands attend Women's March on Washington Protesters hold up signage near the Washington Monument during the Women's March on Washington January 21, 2017 in Washington, DC. Large crowds are attending the anti-Trump rally a day after U.S. President Donald Trump was sworn in as the 45th U.S. president. Drew Angerer/Getty Thousands attend Women's March on Washington Protesters gather during the Women's March on Washington January 21, 2017 in Washington, DC. The march is expected to draw thousands from across the country to protest newly inaugurated President Donald Trump. Aaron P. Bernstein/Getty Thousands attend Women's March on Washington Protesters arrive at the Capital South Metro station for the Women's March on Washington on January 21, 2017 in Washington, DC. Following the inauguration of Donald Trump as the 45th president of the United States, the Women's March has spread to be a global march calling on all concerned citizens to stand up for equality, diversity and inclusion and for women's rights to be recognised around the world as human rights. Jessica Kourkounis/Getty Thousands attend Women's March on Washington Protesters arrive on the platform at the Capital South Metro station for the Women's March on Washington on January 21, 2017 in Washington, DC. Following the inauguration of Donald Trump as the 45th president of the United States, the Women's March has spread to be a global march calling on all concerned citizens to stand up for equality, diversity and inclusion and for women's rights to be recognised around the world as human rights. Jessica Kourkounis/Getty Thousands attend Women's March on Washington Demonstrators protest during the Women's March along Pennsylvania Avenue January 21, 2017 in Washington, DC. Hundreds of thousands of protesters spearheaded by women's rights groups demonstrated across the US to send a defiant message to US President Donald Trump. Joshua Lott/AFP/Getty Images Thousands attend Women's March on Washington WASHINGTON, DC - JANUARY 21: Protesters attend the Women's March on Washington on January 21, 2017 in Washington, DC. Following the inauguration of Donald Trump as the 45th president of the United States, the Women's March has spread to be a global march calling on all concerned citizens to stand up for equality, diversity and inclusion and for women's rights to be recognised around the world as human rights. Jessica Kourkounis/Getty Thousands attend Women's March on Washington A marcher holds a sign during the Women's March on Washington January 21, 2017 in Washington, DC. The march is expected to draw thousands from across the country to protest newly inaugurated President Donald Trump. Aaron P. Bernstein/Getty Thousands attend Women's March on Washington A woman chants while attending the Women's March on Washington on January 21, 2017 in Washington, DC. Large crowds are attending the anti-Trump rally a day after U.S. President Donald Trump was sworn in as the 45th U.S. president. Mario Tama/Getty Thousands attend Women's March on Washington Protesters attend the Women's March on Washington on January 21, 2017 in Washington, DC. Large crowds are attending the anti-Trump rally a day after U.S. President Donald Trump was sworn in as the 45th U.S. president. Mario Tama/Getty Thousands attend Women's March on Washington Protesters march in Washington, DC, during the Women's March on January 21, 2017. Hundreds of thousands of people flooded US cities Saturday in a day of women's rights protests to mark President Donald Trump's first full day in office. Robyn Beck/AFP/Getty Images Thousands attend Women's March on Washington A protester gestures toward the White House on the Ellipse near the South Lawn of the White House during the Women's March on Washington January 21, 2017 in Washington, DC. Large crowds are attending the anti-Trump rally a day after U.S. President Donald Trump was sworn in as the 45th U.S. president. Drew Angerer/Getty Thousands attend Women's March on Washington A protester, holding a Donald Trump doll wearing a pink cap, marches in Washington, DC, during the Womens March on January 21, 2017. Hundreds of thousands of people flooded US cities Saturday in a day of women's rights protests to mark President Donald Trump's first full day in office. Robyn Beck/AFP/Getty Images Thousands attend Women's March on Washington Protesters take to the National Mall to demonstrate against the presidency of Donald Trump Washington, DC on January 21, 2017. Hundreds of thousands of protesters spearheaded by women's rights groups demonstrated across the US to send a defiant message to US President Donald Trump. Dominick Reuter/AFP/Getty Images Thousands attend Women's March on Washington Protesters march during the Women's March on Washington on January 21, 2017 in Washington, DC. Large crowds are attending the anti-Trump rally a day after U.S. President Donald Trump was sworn in as the 45th U.S. president. Mario Tama/Getty Thousands attend Women's March on Washington Demonstrators gather on The Ellipse during the Women's March on Washington January 21, 2017 in Washington, DC. Hundreds of thousands of protesters spearheaded by women's rights groups demonstrated across the US to send a defiant message to US President Donald Trump. Zach Gibson/AFP/Getty Images Thousands attend Women's March on Washington Demonstrators march down Pennsylvania Avenue during the Women's March on Washington January 21, 2017 in Washington, DC. Hundreds of thousands of protesters spearheaded by women's rights groups demonstrated across the US to send a defiant message to US President Donald Trump. Zach Gibson/AFP/Getty Images Thousands attend Women's March on Washington Protester's signs are left near the White House during the Women's March on Washington on January 21, 2017 in Washington, DC. Large crowds are attending the anti-Trump rally a day after U.S. President Donald Trump was sworn in as the 45th U.S. president. (Photo by Mario Tama/Getty Images) Mario Tama/Getty

He said the patch had been on the jacket for years and did not have racial overtones but instead represented the political divide between the northern and southern parts of the state.

He said many residents of the southern county often feel they are short-changed when it comes to state funding. He apologized to anyone who felt offended.

Both candidates ran on a platform to bring jobs back to the struggling area where many Atlantic City casino closures have increased unemployment.

Ms Bennet said she plans to particularly focus on helping those of the 275,000 people in the county on low and fixed-incomes.

“Don’t expect it to be easy, don’t expect people to just jump to your side,” Ms Bennet said on running for elected office for the first time.

“If people feel they’re being left out and their views and needs overlooked, they want to know what you’re going to do to change that,” she noted.