I have the following url.
http://127.0.0.1/ci/index.php/admin/menus/edit/24
I want to get 24 from this to use in jquery/javascript.
Something like this.
var id=this.href.replace(/.*=/,'');
this.id='delete_link_'+id;
Could anyone tell me how to code this?