title: style="display:none" is not working. Jquery toggle()
body: <p>I am trying to filter a div, and it is giving <code>style=&quot;sidplay:none&quot;</code> to all elements which are not in search result and it is working fine, but the attribute is not hiding the element!</p>
  <p><a href="https://i.stack.imgur.com/5ThBB.png" rel="nofollow noreferrer">Image here (direct image not available for me)</a></p>
  <p>my code</p>
  <pre class="lang-js prettyprint-override"><code>WikiOption.Elements.searchInput.on(&quot;input&quot;, (thisx)=&gt; {
      
      var val = $(thisx.target).val();
      $(&quot;.toc-wrap h3&quot;).each(function () {
          $(this).toggle($(this).text().toLowerCase().includes(val));
      });
  });
  </code></pre>