Here i have url http://localhost:93727/Sports/Cricket
How can i take sports and cricket to two different variable using jquery.
here i used
var PATH = $(location).attr('pathname')
alert(PATH);
result :/sports/cricket
how can i get path name from url
var result1:sports and
var result2:cricket