Paul Caddis' header three minutes into stoppage time prevented Birmingham from dropping into the third tier of English football
Birmingham live updates
Birmingham have signed Manchester United's Jesse Lingard on a one-month loan deal.
The attacking midfielder, 20, arrives at St Andrew's to bolster a Blues squad which has struggled so far this season, winning just one and losing five of their opening seven Sky Bet Championship matches.
Striker Marlon King has left Birmingham by mutual consent, the club have announced.
The former Coventry man has been allowed to leave, as the Championship try to reduce their wage budget.
GOAL-Yeovil Town 3 (Ayling 105) Blues 2. Luke Ayling rifles home a thunderous strike off the underside of the bar. #bluesLIVE
GOAL - Incredible scenes! 2nd half of extra-time has started with Yeovil allowing Novak to dribble the ball into the net! 3-3. #bluesLIVE
We're sure you can't quite believe what you're reading,we can't believe what we're seeing here.Extraordinary night at Huish Park. #bluesLIVE
Andy Crofts' second-half goal earned Brighton their first win of the season at the expense of Birmingham.
Birmingham, who also lost their opening home match 1-0 to Watford, could count themselves unlucky as they twice hit the woodwork in the second half but it was Crofts' clinical 73rd-minute strike which proved the difference as new Brighton coach Oscar Garcia celebrated his maiden win in the hotseat.