I get a response from the POST method. Inside I see the value, but after the POST method returns an empty value. Why, hot fix this?
sample:
$.post('/news/add/', {parent: name, title: 'none'}, function(data){ 
 new_id = data;
 alert(new_id); //11
});
alert(new_id); //empty
 
     
     
    