I made a simple guess the letter game. I want to display the letters guessed in the html after I type them. What can I use to do that?
Asked
Active
Viewed 42 times
-1
-
try put some example. – Jesus Carrasco Aug 17 '17 at 03:08
-
Can you [detect key press events](https://stackoverflow.com/questions/302122/jquery-event-keypress-which-key-was-pressed)? Can you update HTML on the page? Where are you stuck? – Paul Aug 17 '17 at 03:12
1 Answers
0
Many ways to do this; perhaps quickest and easiest is with jQuery.
- Include Jquery in your page
Make a div element and give it an ID.
After a letter is guessed/typed, use .appendTo(), .html(), .val(), or the like to add the guess to the list

kmiklas
- 13,085
- 22
- 67
- 103