A repository of over 1000 quality jQuery plugins

jQuery jQuery.trim()

Learn all about the jQuery function jQuery.trim().

The $.trim() function removes all newlines, spaces (including non-breaking spaces), and tabs from the beginning and end of the supplied string. If these whitespace characters occur in the middle of the string, they are preserved.