After JQuery load() css (maybe) not apply to the elements

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

  • elements seems a little weird.I think that the css not loading normally into the elements.

    The elements lost its padding and it appears e black dot. How i can fix it?

  • This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.