This simple comparison of jQuery objects does not compare
<p>Curious what I'm doing wrong here :</p>

<pre><code>employee_ids = $('[data-employee_id="'+employee+'"]');
timestamp_ids = $('[data-scheduled_on="'+timestamp+'"]');

var common = $.grep(timestamp_ids, function(element) {
  $.each(employee_ids, function(idx, item) {
     if ( item === element ) { console.log ("omg!") };
  });
});
</code></pre>

<p>This returns just the list of <code>timestamp_ids</code> and not that array compared against <code>employee_ids</code> looking for a single match.</p>
