77
rated 0 times
[
81]
[
4]
/ answers: 1 / hits: 27858
/ 12 Years ago, fri, august 10, 2012, 12:00:00
I have make this code:
var newURL = $(.list-portfolio a).attr(href),
pathArray = newURL.split( '/' ),
secondLevelLocation = pathArray[0];
console.log(pathArray);
var pathArray = pathArray[3, 4];
The pathArray value is [http:, , www.mikevierwind.nl, portfolio, ruimzicht.html]
How can i get the last 2 items of this array. I want that the results is portfolio/ruimzicht.html.
More From » jquery