get last part of url jquery

Solutions on MaxInterview for get last part of url jquery by the best coders in the world

showing results for - "get last part of url jquery"
Violeta
27 Jan 2019
1// use this
2var part = [];
3var url = window.location.href;
4    part = (url.toString()).split('/') // this will give an array then choose your part by calling this array!! 
5// Hope this will help you!!!