title: how can change value of a div
body: <pre><code>"&lt;div id="diva"&gt;this is div a&lt;/div&gt;"
  "&lt;div id="divb"&gt; this is div b&lt;/div&gt;"
  </code></pre>
  
  <p>now how can I change the text of <code>div</code> dynamically by button click. here also mention that all text come from a database. when I click the button then it detects the <code>div</code> id and replace the text with desire text.</p>
  
  <p>All code will be in PHP.</p>