The Badgers defeated Nebraska, 23-21, on Rafael Gaglianone's 46-yard field goal in the final seconds.