title: how to display a value in div when click a button?
body: <p>i'm still new to this. . i want the value to display in a div that i already defined in css when i click a button. but the only thing that come out is the button. i just can't get the right result that i wanthere's what i've done.</p>
  
  <pre><code>&lt;?php
  var $val=001;
  function increase(){
      echo "&lt;div id='display' &gt;$val++&lt;/div&gt;" ;
  }
  
  ?&gt;
  &lt;body&gt;
  &lt;div id="display"&gt; 
  &lt;button type="button" onclick="increse()"&gt;click me!!&lt;/button&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  
  
  ---------------------my #display in css-------------
  .display{
  height: 200px;
  width: 500px;
  background-color:#CECECE;
  }
  </code></pre>
  
  <p>please help. or maybe refer me to something useful. thank you :)</p>