Site menu

CodeCook.io

  • Languages
    • C
    • C++
    • CSS
    • Git
    • HTML
    • Java
    • JavaScript
    • jQuery
    • PHP
    • Python
    • Ruby
    • Scala
  • string
  • strip

jQuery - Strip whitespace around string

Remove white space characters from beginning and end of string.

0
364
  • Share on Facebook
  • Share on Google+
  • Share on Twitter

Trim edges of string

Removes newlines, spaces, none breakable spaces and tabs from start and end of string.

$.trim({{string}})
javascript
  • jQuery trim

Notes

Trimmed string [String]

last update: July 13, 2015

Advertisement

This project is hosted on DigitalOcean, try it and support us

Random task

  • Hello world
  • Resolve merge conflict with local file
  • Get specific element from list of Protractor returned elements for locator
  • Create empty array
  • Test if string contains another string
  • Blog
  • About
  • License