title: Create buttons dynamically in a div from a javascript function
body: <p>I have a function that returns the data from the sql...</p>
  
  <p>I need to create buttons in a div called </p>
  
  <blockquote>
    <p>divResult</p>
  </blockquote>
  
  <p>here is my function</p>
  
  <pre><code>function retrieveData(transaction, results) {
     for(var i = 0; i &lt; results.rows.length; i++) {
          var data = results.rows.item(i)['nome'];
          alert(data);
      }
  }
  </code></pre>