Loading script through .load

Loading script through .load

I have a foreach loop that echoes all the comments, I also added a trash icon so the user can delete them, the problem is that I want the icon to be shown only if the user that wrote the comment hovers on it. Of course when the page is refreshed it works well, but since I'm using Ajax to update the comments on live I'm using this code to update again the loop -- " $( ".test" ).load('../home/{{$image->id}}  .test'); ".
I'm well aware that in this way scripts won't load, I would like to see if there is any workaround that doesn't include loading the whole page again.
This is the jquery that I'm using.
  <script>
  $(document).ready(function(){
  $('.deletecomment').hide();
  if("{{$comments->user_id}}"=="{{$userid}}"){
    $("#{{$comments->id}}").hover(function(){
    $('.deletecomment').toggle();
  });
  }
});
</script>