xxxxxxxxxx
$("#textInput").val() // To get value of element textInput
xxxxxxxxxx
//Get
var bla = $('#txt_name').val();
//Set
$('#txt_name').val(bla);
xxxxxxxxxx
// Assuming the input element has an id of "myInput"
var inputValue = $("#myInput").val();
console.log(inputValue);