how to set value in input field using jquery code example
Example 1: jquery value of input
$("#textInput").val() // To get value of element textInput
Example 2: jquery change value of input
$('selector').val('new value');
Example 3: change inptu val
//one of these 2 should suffice
$('#id').attr('value', 'xxx')
$('#id').val('xxx');
Example 4: javascript change input value jquery
$('#IdOfTheField').on('change', function() {
alert( this.value );
});