title: How to target isotope data-filter with jquery?
body: <p><a href="http://isotope.metafizzy.co/docs/filtering.html" rel="nofollow">http://isotope.metafizzy.co/docs/filtering.html</a></p>
  
  <p>I am using isotope to filter some elements. I want to show/hide a button if that filter(from the navigation menu) is currently active:</p>
  
  <p>jquery:</p>
  
  <pre><code>if($('nav.primary ul a').attr('.designs') == true){
          $(".loadMore").show();  
      }
  else{$(".loadMore").hide();}
  </code></pre>
  
  <p>html:</p>
  
  <pre><code>&lt;nav class="primary clearfix"&gt;
      &lt;ul&gt;
          &lt;li&gt;&lt;a href="#" class="selected" data-filter=".designs"&gt;Designs&lt;span class="count"&gt;27&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#" data-filter=".flash"&gt;Flash&lt;span class="count"&gt;11&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/nav&gt;
  </code></pre>