Bryson Cokley hit a go-ahead 3-pointer with five seconds left, scoring 29 to rally Elon to an 81-78 victory over William & Mary.