set value of input using queryselector 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';