-3

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

Community
  • 1
  • 1
Harry
  • 483
  • 4
  • 10
  • 22

1 Answers1

1

What about standard javascript string.split(separator, limit), like,

var mystring = "allon steve";
var myarray = mystring.split(" ");
imm
  • 5,837
  • 1
  • 26
  • 32