$( "#amount" ).val( ui.values[ 0 ] +$("#what").val() ); $( "#amount1" ).val( ui.values[ 1 ] +$("#what").val());