Click button add to a counter...

Click button add to a counter...

For some reason this won't work:

  1. $(document).ready(function(){
  2.     var month = 0;

  3.     $("#backMonth").live('click',function(event){
            month-=1;
        });

  4.     $("#nextMonth").live('click',function(event){
            month+=1;
        });

  5. });
When I alert the variable month, it tells me it's 0.

Why?