change input value jquery by id code example
Example 1: jquery change value of input
$('selector').val('new value');
Example 2: javascript change input value jquery
$('#IdOfTheField').on('change', function() {
alert( this.value );
});
$('selector').val('new value');
$('#IdOfTheField').on('change', function() {
alert( this.value );
});