change value on input jquery code example
Example 1: get value of input jqueyr
var str = $("#myInput"). val();
Example 2: jquery change value of input
$('selector').val('new value');
var str = $("#myInput"). val();
$('selector').val('new value');