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

357
Views
Why ajax loaded link not clickable on jQuery click event?

I called Ajax on button click, and I got response with link. Now I want to do some action on that link but I cant, why?

here is the ajax call:

$( document ).ready(function() {
  jQuery(".rateReset").click(function(){
     var data_item = jQuery(this).attr("data-item");
     var data_target = jQuery(this).attr("data-target");
     var me = this;
     jQuery.ajax({
        type: "POST",
        url: "likevoting.php?data_item="+data_item+"&data_target="+data_target+"&interchange=yes",
        success: function(data){
           jQuery(me).closest("div.rateWrapper").html(data);
        }
   });
});

I got response like:

some text link lorem ipsume...

Now I want to add click event on 'link' text, how to do this.

Thanks

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

replace

jQuery(".rateReset").click(function(){

to

jQuery(document).on("click", ".rateReset", function(){
about 4 years ago · Santiago Trujillo Report
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!