just do it

Code:
$('.cartSummaryLink').val( $*(*this*)*.val().replace('Cart','My Shopping
Bag') );


2009/11/10 Daybreak0 <daybre...@gmail.com>

> Hi all,
>
> I have the following html, of which I want to replace the text "Cart"
> with "My Shopping Bag" (The Veiw Cart text is near the end)
>
> 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>
>
>
> Now I need the ability to actually choose the actual text I want to
> replace, as there is other text, where I can not replace the whole
> text line due to different numbers produced on the fly, so I cant use
> the following, which does work.
>
> Code:
> $(".cartSummaryLink").html("View My Shopping Bag'");
>
> I need to use the following one, but my experience is poor
>
> Code:
> $('.cartSummaryLink').val( $this.val().replace('Cart','My Shopping
> Bag') );
>
> I get the following error
> Message: '$this' is undefined
>
> any help will be appreciated.
> Thanks
> John
>



-- 
Abraços......

Marcel Araujo
System Analyst
Developer Java/PHP/RIA
Linux User #490101

Reply via email to