Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var total = $('#profile_answer_counter').text();
- var n = $( ".questionBox" ).length;
- var tid = setInterval(mycode, 100);
- var msg = "";
- function mycode() {
- msg = n + " / " + total;
- console.log(msg);
- $('.submit-button-more').trigger("click");
- n = $( ".questionBox" ).length;
- if (n==total) {
- clearInterval(tid);
- msg = n + " / " + total;
- console.log(msg);
- alert("Terminé, merci ! :) ");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement