var dataUrl = $('#AjaxMoreStatus').attr("data-url");
// http://localhost:8888/app/status/get/31/7
I need to change the last value of the link from the last dash (7) by another value. 7 is a dynamic value.
Ho can i do it ?
For instance if i want to change the dynamic value 7 by 9 :
var new = 9;
$("#AjaxMoreStatus").attr("data-url", url without the 7 + '/' + new);