jQuery.trim()


jQuery.trim( str )Возвращает: String

Описание: Удаляет символы пробелов, табов и переносов строк из начала и конца строки.

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.

Примеры использования