jquery change value input by name code example
Example 1: jquery change value of input
$('selector').val('new value');
Example 2: change inptu val
//one of these 2 should suffice
$('#id').attr('value', 'xxx')
$('#id').val('xxx');
$('selector').val('new value');
//one of these 2 should suffice
$('#id').attr('value', 'xxx')
$('#id').val('xxx');