I need to get all the anchors in a given URL.
I tried using
var elements = $('a[href="' + txtHref + '"]');
Where txtHref is the given URL by the user but it always returned empty.
I saw a lot of examples of getting all the "a" from the current web page but I need all the "a" in a given web page.
Can someone please help me?
Thank you in advance!