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

101
Views
Trigger click Checkbox After page fully loaded

How I run trigger click after page FULLY loaded

I have a checkbox and want to trigger a click.

my code is simple

jQuery(document).ready(function(){
     jQuery('.wcpf-input-checkbox[value="hoodie"]').trigger('click');
});

but it does not work, I tes the script in console after fullu loaded, my script work

I also to try to check if the checkbox ready. it does not work.

jQuery(document).ready(function(){

jQuery('.wcpf-input-checkbox[value="hoodie"]').ready(function(){
    jQuery(this).click();
});

});

How do I trigger click to work?

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

If you attach click action with this method:

$(yourobj).on("click",function() {...});

then you can change it to:

$(document).on("click", 'yourobj', function(event) {...});

But I don't know, you haven't posted all of your code.

about 4 years ago · Juan Pablo Isaza Report

0

The issue for me trigger clicks only can be run after the page fully loaded so I bind my code after window load() and set timeout

Here I solved it

jQuery(window).on('load', function() {
     
        setTimeout(function(){
        //your code here
            console.log('All assets are loaded');
            jQuery('.wcpf-input-checkbox[value="hoodie"]').trigger('click');
            jQuery('.wcpf-button-action-filter').trigger('click');
        }, 1000);
    })
about 4 years ago · Juan Pablo Isaza 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!