JavaScript calendar Events
The following example shows the usage of the basic events available on the jSuites.calendar
plugin.
<html> <script src="https://jsuites.net/v4/jsuites.js"></script> <link rel="stylesheet" href="https://jsuites.net/v4/jsuites.css" type="text/css" /> <input id='calendar'> <script> jSuites.calendar(document.getElementById('calendar'), { time: true, format: 'DD/MM/YYYY', placeholder: 'DD/MM/YYYY', readonly: false, onopen: function() { jSuites.notification({ title:'Calendar', message:'Calendar is open now!' }); }, onclose: function() { jSuites.notification({ title:'Calendar', message:'Calendar is closed now!' }); }, onchange: function(instance, value) { document.getElementById('log').innerText = 'New value is: ' + value; } }); </script> </html>