Home » Jquery » javascript – Do a print using date picker

javascript – Do a print using date picker

Posted by: admin February 22, 2020 Leave a comment

Questions:

I am programming using javascript. Here is my code :

<input type="text" class="form-control statdateselection" id="datepicker1" />

datepicker

I would like when I click on a month, for instance if I click on January, I get a “print ok” in a `console.log’. I tried this:

$(document).on('Select', '#datepicker1', function () {
  console.log('print ok');
});

Unfortunately it does not work. Any tips? Thank you!

How to&Answer: