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
It may be overkill here, but for URL parsing, I found this useful:
A jQuery plugin to parse urls and provides easy access to information within them, such as the protocol, host, port, the segments that make up the path and the various query string values.
In your case, this would boil down to something like:
jQuery.url.setUrl("http://localhost:8080/steer/trip/create/3").segment("4");