Stephen Kenny’s side had looked on course for their second defeat of the campaign after twice trailing to strikes from Paul Murphy and Eric Molloy.
However, a goal direct from a corner from Darren Meenan and a stoppage time intervention from McEleney ensured they will lead the table no matter what happens in Friday’s top of the table clash away to Cork City. After coming flying out of the traps, the wind was taken out of the home side’s sails when they fell behind after 12 minutes. Murphy showed great strength to hold off a challenge from Chris Shields before unleashing a 30 yard shot that bounced just in front of Gary Rogers before crashing into the bottom left hand corner of the net.
Dundalk were level on 24 minutes though. Ronan Finn’s cross was met by David McMillan with the ball coming off his shoulder before dropping invitingly for the inrushing Daryl Horgan to rifle home his fifth goal of the campaign.
The Louth men continued to dominate after that but Oriel Park was rocked when Wexford took the lead for the second time in the 57th minute. Andy Mulligan’s shot was blocked but fell to Molloy, who ghosted past Meenan before firing a low shot under Rogers at his near post.
Meenan would atone for his error 14 minutes from the end, however, when his corner from the left curled straight to the net after a Stephen O’Donnell shot had been finger-tipped over by Graham Doyle. McEleney then completed the comeback in the third of five added minutes by picking up a quick free on the left to fire to the net.
Rogers; Gannon (O’Donnell 74), Gartland, Boyle, Massey; Mountney (Meenan HT), Shields, Benson (McEleney 63), Horgan; Finn; McMillan.
Doyle; McCabe, R Delaney, Last, Friel; Molloy, Bonner, Kenny, Mulligan; Dunne (Furlong 88), Murphy (G Delaney 89).
N Doyle (Dublin).