Set the value of an input field in JavaScript - GeeksforGeeks