You should use a dialog for that:
//define your post target
var url = '/example/post';
$.get(ruta,function(response) {
bootbox.dialog({
title:'Your fancy title',
message:response,
buttons:{
cancel:{
label: "Cancel",
className: "btn-default",
},
submit:{
label: "Submit",
className: "btn-primary",
callback: function() {
//post the data
$.post(url, $('#form').serialize(), function(data){
//do something
});
}
}
}
});
});
Something like that should work