title: apply.daterangepicker is not working
body: <p><a href="https://i.stack.imgur.com/6fxsc.png" rel="nofollow noreferrer">page view</a></p>
  
  <p><code>apply.daterangepicker</code> is not working. I want to call function when apply is clicked but it is not working.</p>
  
  <pre><code>&lt;input type="text" class="form-control date-picker" id="duration" name="daterange" &gt;`
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>$(function () {
    $('input[name="daterange"]').daterangepicker({
      "showWeekNumbers": true,
    });
  });
  
  $('#duration').on('apply.daterangepicker', function (ev, picker) {
    alert('apply clicked!');
  });
  </code></pre>
  
  <p>Library : bootstrap-daterangepicker/daterangepicker.js</p>