Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

142
Views
jquery div load after ajax run one time and next time page need to refresh for work function

I used jquery load method to refresh table after ajax post request and it works well for first time and after load the div next time I try to send ajax request again it doesn't refresh the div and events force to not work without reload full page.

// post request for add canonical

     $('#addCanonical').click(function(e){
        e.preventDefault();
        
        $('#exampleModal1 .modal-title').html('Edit Canonicals');
        
      $('#exampleModal1 form input').attr('value','canonical');
      $('#exampleModal1 form input').css('pointer-events', 'none');
        $('#modal-btn1').click();
    
     $('#exampleModal1 form').submit(function(e){
         e.preventDefault();
         
         let formData = $(this).serialize();
            $.ajax({
            type:'post',
            url:'https://awarno.com/ajax.php',
            data:formData+"&addSeo=true&pid=<?php echo $ref_id ;?>&page=<?php echo $page ;?>",
            success:function(res){

                    console.log('form add seo');
                
               $('#exampleModal1 form input').css('pointer-events', 'all');
                $('.btn-close').click();

                   $('#seo-table-ref').load(location.href + " #seo-table-ref");
                
                
            }
        });
     });
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!