title: Remove <li> elements that does not contain a certain "href" value inside <a>
body: <p>I have bought a wordpress theme called Salient : <a href="http://themenectar.com/demo/salient-frostwave/home-basic/" rel="nofollow">http://themenectar.com/demo/salient-frostwave/home-basic/</a></p>
  
  <p>It has this AJAX search (little search icon in the menu) and I want to remove any search results from the list that has a certain href value, say "portfolio" in it. </p>
  
  <p>I have tried with adding following code as a "raw html element" inside script tags in the page builder plugin but it did not work</p>
  
  <pre><code>$('a[href*="portfolio"]').css.({display:"none"})
  </code></pre>
  
  <p>How to I implement this on wordpress?</p>
  
  <p>Update : </p>
  
  <p>Thanks for all the answers. There was a "." after "css" and the correct line should be : </p>
  
  <pre><code>$('a[href*="portfolio"]').css({display:"none"})
  </code></pre>
  
  <p>Now I need to know how to select and hide all other elements that does not contain "portfolio". i.e. <strong>the end result will only have the items with "portfolio" in it.</strong></p>
  
  <p>I tried</p>
  
  <pre><code>href!="portfolio"
  </code></pre>
  
  <p>But it does not select any because != matches the exact and only "portfolio" where as my "portfolio can be <strong>anywhere</strong> in the link.</p>