sure, that would work just fine.

something like this, maybe? :

$('#somelink').attr({href: 'newprependedtext' + this.href.slice(-6)});


--Karl
____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com




On Jul 20, 2008, at 7:52 PM, hubbs wrote:


I am wondering if it is possible to use the .slice() method to keep 6
characters on the end of a URL in a href attribute, then append a new
URL to the beginning?

Or is there a better method to do this?

Reply via email to