I am currently working on a web application built with asp.net and angularjs.
My goal is to specifically retrieve all anchor tags that have the attribute data-ng-click assigned to them.
Is there a way to achieve this? If so, how can it be done?
I attempted using the code
var x = document.querySelectorAll("a");
, however, it retrieves all anchor tags regardless of their attributes.My aim is to only target those anchor tags that include the data-ng-click attribute.
I am experimenting with this functionality in Google Console for testing purposes.
If successful, I plan to incorporate it into a Google extension.