Northampton took a 25th minute lead thanks to a Jim Goodwin own goal. Veteran striker Andy Booth brought Huddersfield level at half time.
Huddersfield ran away with it then with two goals from Michael Flynn in the 64th and 78th minutes.
Liam Davis' header in injury time was too little too late for the Cobblers.