select

Triggered when new value is selected inside the picker.

Parameters

NameTypeDescription
e {object} event data
type {string} The type of the selection. The options are day, month, year or decade.

Examples

sample

    
 <input id="datepicker" width="312" />
 <p>Click on the month name in order to select another month.</p>
 <script>
     $('#datepicker').datepicker({
         modal: true,
         header: true,
         footer: true,
         change: function (e) {
             alert('Change is fired');
         },
         select: function (e, type) {
             alert('Select from type of "' + type + '" is fired');
         }
     });
 </script>