$(document).ready(function(){
    $(".remove").click(function () {
        var wrapper = $(".post").filter($(this).parents());
        var id = $(this).attr("id");
        var url = "/api/post/delete/"+id;