title: How do i ignore div which style = none with JSPDF
body: <p>i have a situation,in which i have to ignore some divs,  i'am using a JSPDF plugin,
  the idea is to get only some div(which are the result of user choices), JSPDF get the code frome html, so it get even the hidden divs.</p>
  
  <p>this is my code, but it's not working, any help will be appreciated,</p>
  
  <pre><code>var doc = new jsPDF();
  
  var specialElementHandlers = {
  
      '#editor': function (element, renderer) {
  
          return true;
      }
  
  };
  
  
       $("div[style*='display:none']").remove();
  
      doc.fromHTML($('#resultat').html(),15, 15,{
          'width': 170,
              'elementHandlers': specialElementHandlers
      });
  
  
  
  
      doc.output("dataurlnewwindow");
  
  
  &lt;div id="resultatConflit" style="display:none"&gt;
                      &amp;lt;label&gt;&lt;b&gt;Test de Conflit&lt;/b&gt;&amp;lt;/label&gt;
                      &lt;div id="TNeer" style="display:none"&gt;
                          &amp;lt;label for="cnfl1"&gt;Test de Neer &amp;lt;/label&gt;
                          &lt;div id="cnfl1"&gt;&lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div id="ADouloureux" style="display:none"&gt;
                          &amp;lt;label for="cnfl2"&gt;Arc Douleureux &amp;lt;/label&gt;
                          &lt;div id="cnfl2"&gt;&lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div id="Yowm" style="display:none"&gt;
                          &amp;lt;label for="cnfl3"&gt;Yowm &amp;lt;/label&gt;
                          &lt;div id="cnfl3"&gt;&lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div id="THKenedy" style="display:none"&gt;
                          &amp;lt;label for="cnfl4"&gt;Test de Howkins-Kenedy &amp;lt;/label&gt;
                          &lt;div id="cnfl4"&gt;&lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div id="CATest" style="display:none"&gt;
                          &amp;lt;label for="cnfl5"&gt;Cross Abduction Test &amp;lt;/label&gt;
                          &lt;div id="cnfl5"&gt;&lt;/div&gt;
                      &lt;/div&gt; .
  </code></pre>