document.getElementById('id name of my form').remove(), it will clear what is in the frontend but I don’t know some command that will show the game again and when I used the
reset() is showing some error:
Uncaught TypeError: document.getElementById(...).reset is not a function.
is there some other way or command that will show the game again?
reset() method resets the values of all elements in a form. At
W3school, You can read in detail about reset property. But if you want to get the removed element back again, For this you can use the
For more info, check this link: https://www.w3schools.com/jquery/html_detach.asp