I have a page with several (100+) entries like this:
<a href="javascript:removeFromCart(12302, 2);" class="remove">Remove</a>
Now I am looking for a jQuery snippet which can be run in the console and helps me to "click" all those "links" and execute the javascript function removeCart() with the respective parameters.
This does not work:
$("a[href^='javascript']:contains('Remove')").click()
Any ideas?