var jqxhr = $.post("/cms/menu_pagesave", {
page_id: pageID,
name : value_td,
url : value_url
}, function(data) { })
.success(function(response, textStatus, jqXHR){
if (response) {
menupageID = response;
console.log(response);
}
});
I've got the correct response (which should be an integer) as it's turning up in the console. However it's not get assigned to the menupageID. How can I assign the value of the response to a variable? Thanks