View Full Version : Problems with onkeyup for buttons

12-08-2009, 04:34 PM
Hi, I currently have some buttons representing letters and a textbox. When a button is clicked, its value is copied into the text box. I have an onkeyup event which means that every time a button is clicked, a function is called which searches some arrays using the current text box value.
However, the problem I am currently having is that the onkeyup event which calls the function works if I type the value in using my computer keyboard, but not when using the buttons (even though the buttons enter values into the textbox).

Does anyone have any suggestions on how I can make it so that when I press a button, the onkeyup event triggers and the function is called?


Philip M
12-08-2009, 04:37 PM
<input type = "button" onclick =

All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

12-08-2009, 07:09 PM
Thanks, although I already managed to sort it myself, cheers anyway.