change input text code example
Example 1: Javascript get text input value
var inputValue = document.getElementById("myTextInputID").value;
Example 2: jquery change value of input
$('selector').val('new value');
var inputValue = document.getElementById("myTextInputID").value;
$('selector').val('new value');