There is a simple function written in jquery. I print the incoming data con left with each click. But every time I click, the previous id data is also written to the console