Load table () call globally in jquery ajax method

	$(document).ready(function(){    
	                                                                   //read more click
   $('.readmore').click(function(){
   	$(this).css("color","red");
   $(this).parent().parent().parent().parent().siblings().hide();
   $('#blogcomment').css("display","block");
   $('#blog').css("width","45%");
   var idblog =$(this).parent().parent().find('#idnumbervalue').html();
   
     
     $('#yahoomainid').html(idblog);
 
 function load_table()
         {
          var yahoo =$('#yahoomainid').html();
   
          
            $.ajax({
                       url : "blogcommentload.php",
                       type : "POST",
                        data:{filter:yahoo},
                       success : function(data){
                      $("#table-data").html(data)
                                               }
               });
         }
load_table();
 }); 
 $("#blogcommentdone").on("click",function(e){
          e.preventDefault();
        var inputname = $("#name").val();
        var inputemail = $('#blogkaemail').val();
        var inputwebsite = $("#website").val();
        var inputcomment = $("#commenttextblog").val();
        var inputblogid = $('#yahoomainid').text();
       $.ajax({
                   url: "blogcommentsubmit.php",
                   type:"POST",
                   data:{blog_name:inputname,blog_email:inputemail,blog_website:inputwebsite,blog_text:inputcomment,blogidn:inputblogid},
                   success: function(result){
                   if (result == 1)
                    {
                      load_table();
                      $("#addform").trigger('reset');
                      $(".errorapointblog").html("Record saved successfully.");
                      
                    }
                  else
                    {
                      $(".errorapointblog").html("Can't save records.");
                      
                    }
                  
                                      }
            });
      


  });

                                                                      
	});
	

please fast to fast solve my programming problem

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

Please use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks are not single quotes.

markdown_Forums