title: How to pass value from database to jquery datepicker to open an Alert?
body: <p>I need to open alert when a person selects certain date. The contents of the alert should come from a database, and not only display the date he clicked (like a calendar of events). I can already display the alert normally, but have no idea how to call the contents of the database. the database is in SQL. Can anyone help?</p>
  
  <pre><code>  &lt;script&gt;
    $(document).ready(function() {
      $('#datepicker').datepicker({
          dateFormat: 'dd/mm/yy',
          onSelect: function(dateText, inst) {
              alert(dateText);
          }
      });
    });
    &lt;/script&gt;  
  
  
  
  &lt;body style="font-size:62.5%;"&gt;
  
      &lt;div id="datepicker"&gt;&lt;/div&gt;
  
  &lt;/body&gt;
  </code></pre>