I know of the jQuery $.trim() function, but what I need is a way to trim whitespace from the END of a string only, and NOT the beginning too.
So
str =" this is a string ";
would become
str =" this is a string";
Any suggestions?
Thanks!