The click event fires before the default action. It does this to allow you to prevent the default action from occurring by returning false from the handler.
In your example, this means that you alert the old value as the default action of changing the checkbox state has not yet occurred.