I have a URL like this:
http://localhost/Customer/Edit/3
I need to check Customer/Edit/3
and replace the 3
with current id (9
) in jQuery.
The final URL should look like http://localhost/Customer/Edit/9
Note: the replace must only work for Customer related URL.
How can I do this?