//Get var bla = $('#txt_name').val(); //Set $('#txt_name').val(bla);
$("#textInput").val() // To get value of element textInput
var str = $("#myInput"). val();