I am trying to change the innerHTML of any link that has a certain href. This is the link in the in HTML:
Code:
<a href="#ecwid:category=0&mode=category&offset=0&sort=normal" onclick="javascript: return false;">Store</a>
This is the simple jQuery I am trying to use on it. It works when in other scenarios but not here for some reason and I can't figure out why.
Code:
jQuery(document).ready(function() {
jQuery('a[href="www.convolutedconstruct.com/store#ecwid:category=0&mode=category&offset=0&sort=normal"]').text("Gallery Shop");
});
I've also tried this without any luck:
Code:
jQuery(document).ready(function() {
jQuery('a[href="#ecwid:category=0&mode=category&offset=0&sort=normal"]').text("Gallery Shop");
});
Can anyone help me out here?
On the other hand, is there anyway to grab the element by it's innerHTML ("Store" in this case) instead of by its href?