here what i want to do, im not a coder so please help, i will have some buttons, each button will have different value, and there will be one text box. when ever any button is clicked the button's value will show in text box.
Here is a simple script to do it: <html> <head> <title>Buttons</title> </head> <body> <input type="button" value="Button1" onclick="document.getElementById('textbox').value = this.value" /> <input type="button" value="Button2" onclick="document.getElementById('textbox').value = this.value" /> <input type="button" value="Button3" onclick="document.getElementById('textbox').value = this.value" /> <p><textarea id="textbox" cols="30" rows="5"></textarea></p> </body> </html> Code (markup):