append the value of i code example Example: how to append value to input field using jquery $("#resultsInput").val($("#resultsInput").val() + temp_string);