title: Building a menu navigation but failing on the looping through json
body: <p>I am building a menu navigation system using slicnav.  I have a list of resident incidents and I am building the system by date. I want a year then month then day expandable navigation then a list of incidents by day.</p>
  
  <p>Here is Some of the json data:</p>
  
  <pre><code>{
      "incidents" : [{
              "securityincidentid" : 2928,
              "incyear" : 2019,
              "incyearmonth" : "2019-4",
              "incyearmonthday" : "2019-4-15",
              "monthname" : "April",
              "incday" : 15,
              "incidentdatetime" : "2019-04-15 17:15:00.000",
              "resemployees" : "5:15PM "
          }, {
              "securityincidentid" : 2930,
              "incyear" : 2019,
              "incyearmonth" : "2019-4",
              "incyearmonthday" : "2019-4-15",
              "monthname" : "April",
              "incday" : 15,
              "incidentdatetime" : "2019-04-15 14:13:00.000",
              "resemployees" : "2:13PM"
          }, {
              "securityincidentid" : 2933,
              "incyear" : 2019,
              "incyearmonth" : "2019-4",
              "incyearmonthday" : "2019-4-15",
              "monthname" : "April",
              "incday" : 15,
              "incidentdatetime" : "2019-04-15 14:00:00.000",
              "resemployees" : "2:00PM "
          }, {
              "securityincidentid" : 2927,
              "incyear" : 2019,
              "incyearmonth" : "2019-4",
              "incyearmonthday" : "2019-4-15",
              "monthname" : "April",
              "incday" : 15,
              "incidentdatetime" : "2019-04-15 14:00:00.000",
              "resemployees" : "2:00PM "
          }, {
              "securityincidentid" : 2929,
              "incyear" : 2019,
              "incyearmonth" : "2019-4",
              "incyearmonthday" : "2019-4-15",
              "monthname" : "April",
              "incday" : 15,
              "incidentdatetime" : "2019-04-15 13:55:00.000",
              "resemployees" : "1:55PM"
          }, {
              "securityincidentid" : 2931,
              "incyear" : 2019,
              "incyearmonth" : "2019-4",
              "incyearmonthday" : "2019-4-14",
              "monthname" : "April",
              "incday" : 14,
              "incidentdatetime" : "2019-04-14 09:52:00.000",
              "resemployees" : "9:52AM"
          }]}
  </code></pre>
  
  <p>Here is the jquery code to build the menu</p>
  
  <pre><code>var
                  incyear="",
                  incyearmonth="",
                  incyearmonthday="";        
              $.each(navdata.incidents,function(key,value){
                  if(incyear!==value.incyear){
                      $securityincidenul.append(
                          $('&lt;li&gt;').prop({id:value.incyear+"-fd"}).text(value.incyear).append(
                              $('&lt;ul&gt;').prop({id:value.incyear+"-fd-ul"}).append(
                                  $('&lt;li&gt;').prop({id:value.incyearmonth+"-fd"}).text(value.monthname).append(
                                      $('&lt;ul&gt;').prop({id:value.incyearmonth+"-fd-ul"}).append(
                                          $('&lt;li&gt;').prop({id:value.incyearmonthday+"-fd"}).text(value.incday).append(
                                              $('&lt;ul&gt;').prop({id:value.incyearmonthday+"-fd-ul"}).append(
                                                      $('&lt;li&gt;').prop({id:value.securityincidentid}).append(
                                                          $('&lt;a&gt;').prop({href:"#"}).click(function(){
                                                              createsecincidentform(value.securityincidentid)
                                                          }).text(value.resemployees)
                                                      )
                                              )
                                          ) 
                                      )    
                                  )
                              )
                          )
                      )   
                  }else if(incyearmonth!==value.incyearmonth){
                      $("#"+incyear+"-fd-ul").append(
                          $('&lt;li&gt;').prop({id:value.incyearmonth+"-fd"}).text(value.monthname).append(
                              $('&lt;ul&gt;').prop({id:value.incyearmonth+"-fd-ul"}).append(
                                  $('&lt;li&gt;').prop({id:value.incyearmonthday+"-fd"}).text(value.incday).append(
                                      $('&lt;ul&gt;').prop({id:value.incyearmonthday+"-fd-ul"}).append(
                                              $('&lt;li&gt;').prop({id:value.securityincidentid}).append(
                                                  $('&lt;a&gt;').prop({href:"#"}).click(function(){
                                                              createsecincidentform(value.securityincidentid)
                                                          }).text(value.resemployees)
                                              )
                                      )
                                  ) 
                              )    
                          )    
                      )  
                  }else if(incyearmonthday!==value.incyearmonthday){
                      $("#"+value.incyearmonth+"-fd-ul").append(
                              $('&lt;li&gt;').prop({id:value.incyearmonthday+"-fd"}).text(value.incday).append(
                                  $('&lt;ul&gt;').prop({id:value.incyearmonthday+"-fd-ul"}).append(
                                      $('&lt;li&gt;').prop({id:value.securityincidentid}).append(
                                          $('&lt;a&gt;').prop({href:"#"}).click(function(){
                                              createsecincidentform(value.securityincidentid)
                                          }).text(value.resemployees)
                                      )
                                  )   
                              )   
                          )
                  }else if(incyearmonthday===value.incyearmonthday){
                      $("#"+value.inceyearmonthday+"-fd-ul").append(
                          $('&lt;li&gt;').prop({id:value.securityincidentid}).append(
                              $('&lt;a&gt;').prop({href:"#"}).click(function(){
                                  createsecincidentform(value.securityincidentid)
                              }).text(value.resemployees)
                          )
                      )    
                  } 
                  incyear=value.incyear;
                  incyearmonth=value.incyearmonth; 
                  incyearmonthday=value.incyearmonthday;    
              })
  </code></pre>
  
  <p>As you can see I have 4 records for 4/15/2019 and then one for 4/14/2019.  It is only showing the first record for each day and not the subsequent records.   Any ideas?</p>