I have widjet.php file with a code to apply-fill in a chat panel.When I refresh the page normally or when i visit it the chat panel works fine as it seems.
I write a code with JQuery and ajax so dynamically delete the posts when i click the red trash icon.The code is this:
<script>
$('.trash').click(function (){
var id=$(this).attr("rel");
console.log(id);
$.ajax({
url: 'includes/ajax_chart.php',
type: 'POST',
data: {id:id},
success: function () {
console.log("success");
}
});
$('#refresh').load('includes/widjet.php');
});
</script
The code working the div reload but the
The elements lost its padding and it appears e black dot. How i can fix it?