Zach Hemming made a couple of smart saves from Ollie Turton and Luke Garbutt, while Dylan Duffy and Lee Bonis had half chances for the Spireites in the first 45 in what was a scrappy game played on a scruffy surface.
Ryan Graydon missed a huge chance for the hosts when he smacked the crossbar from six-yards out just before the hour, while Daniel Udoh hit the side-netting when through on goal later on as the hosts were on top in the second-half.
Graydon had two more chances, first being denied by a superb challenge from Sil Swinkels, before the striker hooked narrowly wide with 15 minutes remaining.
Kelly Nmai raced through late on but Sam Curtis managed to get back and make a last-ditch tackle and that proved important as Curtis’ cross down the other end was turned in by Cooper in the 93rd minute to send the Spireites bench and travelling fans wild.
Here are our player ratings from the game...

5. Tom Pearce 7
Once again showed he is not afraid to push high up and provide crosses. Battled hard at the back. Photo: Tina Jenner

6. Tom Naylor 7
Recalled to the starting line-up, one of six changes. Added some extra steel, it wasn't pretty but he fought hard. Photo: Brian Eyre

7. Ryan Stirk 7
Good in the duels, always seemed to be in the right place to get a foot in and win possession back. Got through plenty of work off the ball and was nice and calm in the latter stages. Photo: Submitted

8. Dilan Markanday 7
Rewarded with a start after his goal at the weekend, making his 50th appearance for the club. Chesterfield's brightest spark in the first-half, catching the eye with some lively dribbles and he didn't shy away from the defensive side of the game either. Quieter after the break, and no doubt started to tire, with his legs rested with 12 to go. Photo: Submitted

