Cant get javascript increment ++ work
Hello Im trying to count the number of times jquery uses its $.get function.
I have a simple variable called var max =0; When the $.get is passed I then have max++ in the appropriate region but this does not work because when I alert max later it still shows up as 0. I even tried max = max +1. 

What could be the problem?
Cant get javascript increment ++ work
===

Hello Im trying to count the number of times jquery uses its $.get function.
I have a simple variable called var max =0; When the $.get is passed I then have max++ in the appropriate region but this does not work because when I alert max later it still shows up as 0. I even tried max = max +1. 

What could be the problem?