MANHATTAN, Kan. -- Guards Marcus Foster and Will Spradling each scored five points in overtime as the Kansas State Wildcats upset the No. 7 Kansas Jayhawks 85-82 on Monday at Bramlage Coliseum.

It was the Wildcats' third win in the last seven games in Manhattan against Kansas after losing 25 straight from 1983-07.

The Wildcats spread their scoring in the overtime period with six different players getting points. It was the Wildcats' second straight victory over a top-15 team. K-State defeated No. 15 Texas 74-57 on Saturday.

Foster led Kansas State (17-7, 7-4 in the Big 12) with 20 points while Spradling added 15. Kansas (18-6, 9-2) was led by forward Perry Ellis with 19, guard Andrew Wiggins with 16 and guard Naadir Tharpe with 13.

Kansas State came out strong in the second half, leading by as much as nine points (46-37) after scoring 17 of the first 25 points of the half. Forward Shane Southwell scored his first five points of the game, and then Foster hit a couple of 3-point shots.

The Jayhawks trimmed the lead to four when Foster rolled his ankle at the 8:41 mark and had to leave the game. But Spradling kept the Wildcats in the lead with a 3-pointer and a driving layup. Foster was able to return to the game at the 5:01 mark, and Kansas State led 60-55.

Kansas State battled foul trouble, especially in the second half. Forward Wesley Iwundu picked up his fourth foul and forward Thomas Gipson picked up his third midway through the half. The Wildcats picked up their 10th foul of the half with 7:32 remaining.

Reserve forward D.J. Johnson then scored five straight points for the Wildcats, interrupted only by guard Tharpe's floater in the lane. Then Johnson blocked an Ellis baseline jumper, which led to a fast-break basket by forward Nino Williams and a 64-55 lead with 4:16 remaining.

Tharpe and Johnson traded buckets and Kansas State led 66-59 with 2:40 left. Iwundu hit both ends of a one-and-one and the Wildcats led by nine. But Kansas finally found a run, answering with six straight points. The Jayhawks had a chance to tie, but Wiggins drew nothing on a three-point attempt. Iwundu hit one of two free throws before Tharpe cut the lead to 69-67 with 21.9 seconds left. Iwundu missed the front end of a one-and-one and Kansas tied it on a tip-in by Wiggins with 5.8 seconds left.

During Kansas' streak of 29 wins in the last 31 games in Manhattan, Kansas State's downfall typically was giving up a big first-half run. But the Wildcats stayed right with the Jayhawks on Monday, never allowing more than six points in a row. K-State had the biggest run of the half, a 7-0 stretch early in the half.

Foster, who had the best scoring effort by a Big 12 freshman when he scored 34 against Texas on Saturday, led the Wildcats in the first half with nine points, with six of his points coming on 2-of-2 shooting from three-point range.

Kansas State's defense was stellar in the first half, holding Kansas to just 34.6 percent from the field and 29 points, 10 points below the Jayhawks' season average. But Kansas was equally stifling. The Jayhawks held Kansas State to just 37.9 percent from the field, and the score was tied at 29 at the half.

NOTES: Kansas entered the game with an 11-game winning streak on ESPN's Big Monday. The last loss came at Kansas State in 2011. ... Kansas had four starters averaging in double figures, led by G Andrew Wiggins. The fifth starter -- G Naadir Tharpe -- was averaging 9.3 points per game coming in. ... Kansas State is a winner of nine of its last 12 home games against ranked opponents, including 4-0 this season.