jquery set value on input element code example
Example 1: jquery change value of input
$('selector').val('new value');
Example 2: jquery set input value
$("button").click(function(){
$("input:text").val("Glenn Quagmire");
})
$('selector').val('new value');
$("button").click(function(){
$("input:text").val("Glenn Quagmire");
})