Remove form from DOM using JavaScript
问题 I have three radio buttons.. each radio buttons on click have an independent form that appears. I need to remove form from DOM when i click on a radio button. and there are a third one not ready yet. When i click on the first radio button only its form appears, the other two are removed from DOM. Same for other. I don't have a good idea about JavaScript. Html: <div class="page-header"> <h1>Backtesting{% if form.instance.pk %}: {{form.instance.title}} {% endif %}</h1> </div> <div class="row">