結果 : how to update input value in javascript