set input tag value in jquery 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");
})
Example 3: set input value jquery
$("button").click(function(){
$("input:text").val("Glenn Quagmire");
});
Example 4: javascript change input value jquery
$('#IdOfTheField').on('change', function() {
alert( this.value );
});