i have a url like this. http://localhost:8080/steer/trip/create/3. where in my page i want to get value \"3\" using the jquery . please help me
Plain js
var arr = (window.location.pathname).split("/"); var val = (arr[arr.length-1]);
The value that you require is in val
val