Cook County State’s Attorney Anita Alvarez narrowly won Riverside, Brookfield and North Riverside, but it was not nearly enough to prevent her from going down to a lopsided defeat to challenger Kim Foxx in the Democratic primary last week.

Alvarez, who was seeking her third term as state’s attorney, will leave office in December. She knew she needed a strong showing in the suburbs after being harshly criticized in Chicago, particularly in the black community, for her handling of the case of the shooting of Laquan McDonald by police officer Jason Van Dyke. 

In a last-minute bid for votes on Election Day, Alvarez shook hands in front of the Riverside Township Hall polling place along with state Rep. Michael Zalewski, the Riverside Township Democratic Committeeman who bucked the party endorsement of Foxx to stick with Alvarez. 

Last summer the party slatemakers had decided to stay neutral in the race, but reconsidered and decided to endorse Foxx after the release of the video of the shooting of McDonald. Foxx had the strong support of Cook County Board President Toni Preckwinkle, for whom Foxx once worked as chief of staff.

Zalewski said that he supported Alvarez because she stood with him on legislation he pushed to combat gun violence.

“She’s consistently joined my fight for tougher gun penalties for felons with guns,” Zalewski said. “I think we have a crisis in this city and in this county with illegal gun use, and I personally think that she and I worked collaboratively on a number of issues that reduced crime in this county.”

In Riverside Township, which includes almost all of the village of Riverside, most of North Riverside and the Hollywood section of Brookfield, Alvarez won 42 percent of the vote to 39 percent for Foxx and 19 percent for Donna More.

Countywide, Foxx won easily with a margin of more than 300,000 votes winning about 58 percent of the vote county wide compared to 28 percent for Alvarez, and just 13 percent for More.

Alvarez beat Foxx by 204 votes in Brookfield, winning 43 percent of the vote there to 38 percent for Foxx and 18 percent for More.