Posts by Francinaldo Portela • 11 points
1 post
-
1
votes2
answers744
viewsA: Hide one div and show another by clicking on a javascript-only button
The problem is that the form is being sent, hence the screen ta updating. You only need to put a "preventDefault()" or "Return false" in the function call. onclick="show_question('q2'); return…
javascriptanswered Francinaldo Portela 11