queryselector by attribute code example
Example 1: js queryselector find without attribute
var test = document.querySelectorAll('input[value][type="checkbox"]:not([value=""])');
Example 2: javascript querySelector change input value
var element = document.getElementById('element_id');
element.value = 'random_value';
Example 3: queryselector
document.querySelector(".example");