Obtenez la dernière partie de l'URL jQuery

// use this
var part = [];
var url = window.location.href;
    part = (url.toString()).split('/') // this will give an array then choose your part by calling this array!! 
// Hope this will help you!!!
Homely Hamerkop