get string from input javascript code example
Example 1: Javascript get text input value
var inputValue = document.getElementById("myTextInputID").value;
Example 2: get input string js
document.getElementById('textbox_id').value to get the value of desired box
For example, document.getElementById("searchTxt").value;