change inptu val

JavaScript
//one of these 2 should suffice
$('#id').attr('value', 'xxx')
$('#id').val('xxx');
Source

Also in JavaScript: