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 cellspacing="0"
class="cartSummaryTable"><tr><td class="cartSummaryItem">1 item
(s),Total: &#163;0.00
<a class="cartSummaryLink" href="/ OrderRetrievev2.aspx?
CatalogueID=45965">View Cart</a></td></tr></
table></span></div>

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 $(this) to be? What code (HTML & JavaScript )
> do you have to show us?
>
> On Nov 10, 2009 8:42 PM, "Daybreak0" <daybre...@gmail.com> wrote:
>
> Joe and Marcel - I see.
>
> Thank you
>
> $('.cartSummaryLink').val( $(this).val().replace('Cart','My Shopping Bag')
> );
> No errors occur but it does not work.
>
> I am not sure why, as its beyond my limited knowledge, but there must
> be a way to replace certain text.

Reply via email to