On a web page that has a list of categories, and the name of each category are related in this format: http://localhost/admin/category/unpublish/2
I wrote the following js code trying to grab the url and render segments (action) and "2" (id) and you need to send a request to http://localhost/admin/category
$('#statusChanges a').click(function(evt) {
javascript jquery url ajax
Tonygw
source share