$("#input").on("input", function(e) {
var value = $(this).val();
});
$(button).click(function() {
var input = document.getElementById('id').value;
});
const input = document.getElementById('input');
const value = input.value;
const value = document.getElementById("input").value;
Find more questions by tags jQueryJavaScript