title: is there any function like php explode in jquery?
body: <p>I have a string <code>path1/path2</code></p>
  
  <p>I need to get the values of <code>path1</code> and <code>path2</code>.</p>
  
  <p>how can i do it?</p>
  
  <hr>
  
  <p>And what about getting the same from such string <code>http://www.somesite.com/#path1/path2</code>?</p>
  
  <p>Thanks</p>