trim

Returns a copy of the string, with leading and trailing whitespace omitted.

See also capitalize, lowerCase, replace, concat, upperCase.

Syntax

trim()

Examples

$('AVar').trim();