jquery changing value of input code example
Example 1: jquery onchange input value
$("input").change(function(){
alert("The text has been changed.");
});
Example 2: jquery set input value
$("button").click(function(){
$("input:text").val("Glenn Quagmire");
})