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
From: Highlight a button based on location
var pathname = window.location.pathname.split("/");
var filename = pathname[pathname.length-1];
alert(filename);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With