I want to add value 1 when button was clicked and 0 when i am not clicking the button. But when the web is first loaded it is set to the value 0. I write my code like this