Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

106
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda