Created
January 6, 2014 13:25
-
-
Save unknownuser88/8282866 to your computer and use it in GitHub Desktop.
split(delimiter, [limit]) Splits a string into many according to the specified delimiter, and returns an array containing each element. The optional “limit” is an integer that lets you specify the maximum number of elements to return.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//split(delimiter) | |
var message="Welcome to jQuery4u" | |
//word[0] contains "We" | |
//word[1] contains "lcome to jQuery4u" | |
var word=message.split("l") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment