assign a text value to a queryselector javascript code example
Example: javascript querySelector change input value
var element = document.getElementById('element_id');
element.value = 'random_value';
var element = document.getElementById('element_id');
element.value = 'random_value';