jquery update value of input code example
Example 1: get value of input jqueyr
var str = $("#myInput"). val();
Example 2: jquery change value of input
$('selector').val('new value');
Example 3: jquery set input value
$("button").click(function(){
$("input:text").val("Glenn Quagmire");
})