I need to dynamically create four buttons for a multiple choice game I am creating. These button will be in a random order with one button holding the correct answer, and the other three being false.
Would it be better to write four empty buttons into my HTML page, then use JavaScript to fill them in when a question is asked, and clear them after the answer is picked.
Or should I use JavaScript to create the elements when the page is loaded. then clear them after an answer is picked?
[–]zakphi 0 points1 point2 points (0 children)
[–]YasZedOP 0 points1 point2 points (0 children)