title: Parse a relative link in jQuery
body: <p>this is the output I am getting while retriving the data with Jquery</p>
  
  <pre><code>/content/apple/en_US/products/apple/phones/iphone6.html
  </code></pre>
  
  <p>I want to remove everthing after the last / </p>
  
  <p>result should look like:</p>
  
  <pre><code>/content/apple/en_US/products/apple/phones/
  </code></pre>
  
  <p>how do I achive this task with jquery.</p>