title: Detect change on different inputs using .on()
body: <p>I have the following form:</p>
  
  <pre><code>&lt;form class="uk-form"&gt;
    &lt;label for="startDate"&gt;Start Date:&lt;/label&gt;
      &lt;input type="text"  id="startDate" data-uk-datepicker="{format:'YYYY-MM-DD'}"&gt;
    &lt;label for="endDate"&gt;End Date:&lt;/label&gt;
      &lt;input type="text"  id="endDate" data-uk-datepicker="{format:'YYYY-MM-DD'}"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>What I need is to call a JS function once one of those datapicker gets changed using .on() in JQuery.</p>
  
  <p>I get it to work using only one with this code:</p>
  
  <pre><code>$('#startDate').on('change', function() {
  </code></pre>
  
  <p>However what I need is that when one of them changes to run the function, sort of like this:</p>
  
  <pre><code>$('#startDate'||'#endDate' ).on('change', function() {
  </code></pre>
  
  <p>Any ideas?</p>