K
K
ka1enka2015-10-05 09:53:39
JavaScript
ka1enka, 2015-10-05 09:53:39

Userscript, so that he would remove the default checkboxes on the site?

There is a site on which checkboxes are set by default on some options, how to write a script that would change the default checkboxes.
I don’t understand scripts from the word at all, but I hope to do it in the image and likeness. So some example is needed.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
amatory10, 2015-10-05
@ka1enka

For example:

var array = document.querySelectorAll('input[type=checkbox]'), i;
for(i = array.length; i--;) {
    if(array[i].checked) array[i].checked = false;
}

H
HoHsi, 2015-10-05
@HoHsi

If with jQuery, then so

$('input[type=checkbox]:checked').prop( "checked", false );

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question