HARRISBURG (CBS) — A county commissioner from the Philadelphia suburbs has won the Democratic nomination for Pennsylvania attorney general.

Montgomery County Commissioner Josh Shapiro defeated two prosecutors, Allegheny County District Attorney Stephen Zappala and Northampton County District Attorney John Morganelli, in Tuesday’s primary election.

READ MORE: Joel Embiid Scores 32, Leads 76ers To 109-98 Win In Miami

He’ll take on the Republican victor, Sen. John Rafferty of Montgomery County, in the general election.

READ MORE: Daniel Moore, Hero Pilot In Drexel Hill Medical Helicopter Crash, Released From Philadelphia Hospital

Shapiro and Rafferty are vying to succeed Democrat Kathleen Kane, who didn’t seek re-election amid criminal charges that she unlawfully leaked grand jury information and then lied about it. Kane denies wrongdoing.

MORE NEWS: Eagles Eliminated From NFL Playoffs After 31-15 Loss To Tampa Bay Buccaneers

(Copyright 2016 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)