function selAll() { var celements = document.getElementsByName('aids[]'); for (i=0;i{ document.form3.dopost.value = 'delall'; document.form3.submit(); }).catch((e)=>{ console.log(e) }); }