0 votes
65 views
asked in Jquery by
How do you find all active links on a page with JS which are not hashed '#' (non-hashed) ?

1 Answer

0 votes
answered by
$('a').each(function()
    {
      if (this.href[this.href.length -1] != '#')
      {
        alert(this.href.toLowerCase());
      }
    });

Related questions

0 votes
1 answer 35 views
+1 vote
0 answers 557 views
+1 vote
1 answer 5k views
asked May 10, 2017 in Jquery by Jasna
0 votes
1 answer 19 views
asked Jun 12, 2016 in Magento by Jelena
...