i am using mvc and jquery in my application i have the routing url like this :
ID/Controller/Action
I want to get the URL and split it to get t
You can split the pathname from the moment you get it:
var pathname = window.location.pathname.split( '/' );
Once you have it split, you can access any part of the pathname as follows:
var path_id = pathname[1]; var path_controller = pathname[2]; var path_action = pathname[3];