title: How to display list on mouseover in javascript?
body: <p>Hi i am trying to display list on mouse over if length is >0 then i am displaying count.On mouse over list i want to display list.But in my case list is always displaying when length is >o.How to display list only on mouse over?
  what exactly i am trying is </p>
  
  <pre><code> if (feature.attributes.hasOwnProperty("ExceptionType")) {
  
                      var exceptionType = 'x,y';
                      if (exceptionType)
                      { var activeExceptions = exceptionType.split(','); }
                      else
                      { var activeExceptions = []; }
  
                      var item, items = [];
                      for (var i = 0; i &lt; activeExceptions.length; i++) {
                          item = {};
                          item.activeexception = activeExceptions[i];
                          items.push(item);
                      }
  
                      var main = $("&lt;ul&gt;");
                      var str = "&lt;ul&gt;";
                      for (var i = 0; i &lt; items.length; i++) {
                          str += "&lt;li&gt;" + items[i].activeexception + "&lt;/li&gt;";
                      }
                      $('[rel="tooltip"]').tooltip();
  
                      main.html(str);
                      if (activeExceptions.length == 0) {
                          feature.attributes.Hoverlist = ".showme{display: none}";
                          feature.attributes.ShowExceptionType = "display:none";
  
                      }
  
                      else 
  
                          feature.attributes.Hoverlist = ".showhim:hover .showme{ display : block;}";
                          feature.attributes.ShowExceptionType = "display:block";
                          feature.attributes.HoverContent = str;
                          feature.attributes.ExceptionCount = activeExceptions.length;
  
  
                  }
  
    "description": "&lt;div class='showhim' style='{ShowExceptionType}' ng-mouseover='alert('hi');'&gt;{ExceptionCount}&lt;div class='showme' style='{Hoverlist}'&gt;{HoverContent}&lt;/div&gt;&lt;/div&gt;",
  </code></pre>