How to trim() white spaces from a string?

The shortest form for jQuery:

string = $.trim(string);

Link

Leave a Comment