title: finding an anchor with a certain attribute using jquery
body: <p>I'm trying to find an anchor inside a div that posses a specific attribute, but the jquery code is for some looking at the hreef value of the anchor, not the anchor itself. This is the code I'm using:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
              $(document).ready(function() {
              $("#ax_campaign_nav a").each(function (i) {
                  if (this.attr('data-ident') == "ax_models") {
                          this.hide();
                      }
              });
          });
      &lt;/script&gt;
  </code></pre>
  
  <p>And my link looks like this:</p>
  
  <pre><code>&lt;a href="javascript:void(0);" data-ident="ax_models" onclick="scrollToAnchor('#a_ax_models')"&gt;+ Model Bios&lt;/a&gt;
  </code></pre>
  
  <p>What am I doing wrong? Thanks for the help.</p>