I should have said, so as to to be confusing The Jquery code which is not working is $('.cartSummaryLink').val( $(this).val().replace('Cart','My Shopping Bag')
The CSS class of the link <a class="cartSummaryLink" href="/ OrderRetrievev2.aspx?CatalogueID=45965">View Cart</a> is '.cartSummaryLink' $(this) is meant to be equal to 'View Cart'