You can't use the val() attribute, you need to use the text() attribute. Its still not clear to me what you are trying to accomplish, so I played a little and here's what I came up with for you to peruse.
<html> <head> <title>Test Page</title> <script src='jquery.js' type='text/javascript'></script> <script type="text/javascript"> $(function(event) { $('a.cartSummaryLink').click(function(event) { aLink = $(event.target); aLink.text( aLink.text().replace('Cart','My Shopping Bag')); event.preventDefault(); }); }); </script> </head> <body> <a class="cartSummaryLink" href="#">View Cart</a> </body> </html> HTH, Joe On Wed, Nov 11, 2009 at 5:32 AM, Joe Moore <joe.lynn.mo...@gmail.com> wrote: > So the jquery code executes when they click on the link? > If so, do you have a click event attached to the links and this code is on > it? > > On Nov 10, 2009 10:46 PM, "Daybreak0" <daybre...@gmail.com> wrote: > > Joe > > Here is the Html fom above - I should have continued it into the > conversations. > > HTML Code: > > <div class="cart-summary"><span id="catCartSummary" quote="False" > vertical="False"><table cellspacin... > The CSS class of the link <a class="cartSummaryLink" href="/ > OrderRetrievev2.aspx?CatalogueID=45965">View Cart</a> is > '.cartSummaryLink' > > The Jquery code is of course > > $('.cartSummaryLink').val( $(this).val().replace('Cart','My Shopping Bag') > $(this) is meant to be equal to 'View Cart' > > Thanks > > On Nov 11, 2:05 pm, Joe Moore <joe.lynn.mo...@gmail.com> wrote: > Well, > what are you expecting $(t... > > > On Nov 10, 2009 8:42 PM, "Daybreak0" <daybre...@gmail.com> wrote: > > > Joe and Marcel - I see. > > ... > >