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
This will output "3" or basically the whole last segment of the url after the last "/" slash.
var urlsegment = top.location.href.match(/([^\/]+)$/)[1]