jQuery.trim( str )Returns: String
Description: Remove the whitespace from the beginning and end of a string.
-
version added: 1.0jQuery.trim( str )
- strType: StringThe string to trim.
-
The $.trim()
function removes all newlines, spaces (including non-breaking spaces), and tab