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

169
Views
Jquery .click() Not working after ajax call

I can use some help identifying an issue I have with an on click event. I am using jquery to get around an issue I am having. I don't have access to the application code, so I need to use jquery to patch something up.

I have a close element and a button (dumbed down for the sake of simplicity). The essentially closes a modal and pseudo refreshes the page via an ajax call.

When I execute my on click event, the forced click on the works perfectly. Function is called and all is well, however after the page refreshes, the forced click on the button does not work. Any ideas why the second forced click won't work? Not sure if it is an issue with some sort of bind I am not aware of or what. Any help would be appreciated.

<div>
<div class="close">Close</div>
<button class="doSomething" ng-click="performFunc()">Pop Modal</button>
</div>



$('.close').on('click',function(){

    $('button.doSomething').click();

});
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!