Possible Duplicate:
How to use Split with jQuery?
How to split two or mor words using Jquery?
For example: allon steve
The array should be [allon,steve]
Thanks
Possible Duplicate:
How to use Split with jQuery?
How to split two or mor words using Jquery?
For example: allon steve
The array should be [allon,steve]
Thanks
What about standard javascript string.split(separator, limit)
, like,
var mystring = "allon steve";
var myarray = mystring.split(" ");