Change textbox text on button click

I have a textbox where a user can enter a command to a server, then after that I have some preset commands to save the user some time. However these preset commands require a number to entered into the textbox, e.g.

button: set time
textbox: 5:00

How would I go about making the button submit both the number & button command to a
action=“console.php” method="post

add it as a hidden form field.

Sponsor our Newsletter | Privacy Policy | Terms of Service