title: Increment a number by clicking onto a button
body: <p>I have the number <code>$likes_number</code> in a div block on my page. I would like to know how to increment it dynamically by clicking on a button?</p>
  
  <p><strong>My code:</strong></p>
  
  <pre><code>&lt;div id="likes"&gt;
      &lt;span class="figure"&gt;
          &lt;?php echo $likes_number ;?&gt;
      &lt;/span&gt;
  &lt;/div&gt;
  &lt;button type="button" id="like" &gt;Like&lt;/button&gt;
  </code></pre>