var userValue = $("input.key").val();
var users = document.querySelector('.userL');
var userList = [];
setInterval(function(){
$.ajax({
url:"users_quiz.php",
method:"POST",
success: function(data){
if(!userList.includes(userValue)){
userList.push(data);
}
userList.forEach((uL) =>{
users.innerHTML += `<li>${uL}</li>`;
})
}
})
}, 1000);