ve"); $(this).parents("ul").prev("i").text(text); $(this).parents("ul").hide(); resultTable.ajax.reload(); }); $("body").on("click",function(){ $(".unit ul").each(function(i,n){ $(n).hide(); }); });