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?
<script>
$(document).ready(function() {
$('#datepicker').datepicker({
dateFormat: 'dd/mm/yy',
onSelect: function(dateText, inst) {
alert(dateText);
}
});
});
</script>
<body style="font-size:62.5%;">
<div id="datepicker"></div>
</body>
Something like this is probably what you want. Of course you need to implement the web-service for getEvts/ as Robert mentioned.
p.s.: I’m using jquery to make the AJAX Call