var ele=document.getElementsByClassName('mycheckbox'); // Replace mychecbkox with your checkbox classname
for(var i=0; i<ele.length; i++){
if(ele[i].type=='checkbox')
ele[i].checked=true;
}
Fachbeitrag: Kontextinterviews durchführen
Annoyed of checking a zillion of checkboxes? Just run the snippet and you are are good to go. Replace the „mycheckbox“ (first line at the end) with your desired checkbox classname.
var ele=document.getElementsByClassName('mycheckbox'); // Replace mychecbkox with your checkbox classname
for(var i=0; i<ele.length; i++){
if(ele[i].type=='checkbox')
ele[i].checked=true;
}
WHERE TO PLACE THIS CODE?
Just run the snippet with the help of your browser console.
Please share your thumbsup, suggestions, edits, and questions within my comment section down there.
I love posting snippets for you, but with a bit of feedback, it gets even more fun. 😀
Jeder mag Cookies! Du kannst alle Cookies akzeptieren oder in den Cookie Settings auswählen, welche genutzt werden dürfen.
Name | Domain | Zweck | Ablauf | Art |
---|---|---|---|---|
wpl_user_preference | eboosting.net | WP GDPR Cookie Consent Preferences | 1 year | HTTP |
Name | Domain | Zweck | Ablauf | Art |
---|---|---|---|---|
_ga | eboosting.net | Google Universal Analytics long-time unique user tracking identifier. | 2 years | HTTP |
_gid | eboosting.net | Google Universal Analytics short-time unique user tracking identifier. | 1 day | HTTP |
_gat_UA-60203069-1 | eboosting.net | Google Analytics tracking cookie. | Session | HTTP |
Analytics | eboosting.net | Analytics Tracking | 1 year | HTTP |