« Return to Thread: Re: [OT] Jquery Remove Trailing "&" From String

Re: [OT] Jquery Remove Trailing "&" From String

by Israel Thompson :: Rate this Message:

Reply to Author | View in Thread

Thanks, that works too!

Israel

Jason Huck wrote:
That's more of a general javascript question. It should be something like this:

var mystring = 'foooobaaaaarrrrr&';
mystring = mystring.substr(0, mystring.length - 2);

- jason

 « Return to Thread: Re: [OT] Jquery Remove Trailing "&" From String