title: Jquery .addClass to parent-parent var with .each
body: <p>Please take a look at the code below:    </p>
  
  <pre><code>var firstcalenderd = $('div.pmu-instance:eq(0) div.pmu-days div.pmu-button:not(.pmu-not-in-month)').each(function() {
     var parsingevents = $('.rko-calendar-event');
  
     parsingevents.each(function() {   
        if(firstcalenderm == gmonth &amp;&amp; currday == gday)
        {
           .addClass('eventday');
        }  
     });
  });
  </code></pre>
  
  <p>As you can see, there are two <code>.each()</code> loops , one in another one. If conditions are met in second one (child of first), I want to add class to the first one. 
  How could I call this parent var?</p>
  
  <p><code>firstcalenderd.addClass('eventday')</code> - is not working.</p>