AutoClick only in class within class

2

I would like to perform a sequenced autoclick on only one link at a time and only on the class="mobile" that has a class="check-handler". Thanks to anyone who helps me because I have tried several scripts but so far nothing.

(A)<div class="clicked mobile" id="container">
   <div class="check-handler" data-id="000" data-url="http://www.xxx.com">    

(B)<div class="mobile" id="container">                                   
   <div class="check-handler" data-id="111" data-url="http://www.mmm.com">

(C)<div class="mobile" id="container">                                   
   <div class="check-handler" data-id="222" data-url="http://www.uuu.com">

if ($('.mobile #container .check-handler').is(':visible')) 
    setTimeout(function(){$('.mobile #container .check-handler').click();},5000);
    
asked by anonymous 12.05.2018 / 15:44

1 answer

1

I got the answer through another Javascript site.

$(document).ready(

function() {

setTimeout(
function () {

$('#container:not(.clicked.mobile) .check-handler').click();


}, 3000);}); 
    
15.05.2018 / 17:23