title: How to increase and decrease a counter from one button - click and click again jQuery
body: <p>This is the code that I am currently using:</p>
  
  <pre><code>&lt;script&gt;
     $(".lk").click(function(){
     $(this).find("#lke").html(function(i, val) { return val*1+1 });
     });
  
     $(".lk").click(function(){
     $(this).find("#lke").html(function(i, val) { return val*1-1 });
     });
  &lt;/script&gt;
  </code></pre>
  
  <p>When the user clicks on the button, the value of #lke increases by 1. When he clicks again, the value decreases by 1. The code that I am currently using does not work so how would I fix this?</p>