I have four forms (MainForm, Landed, Apartment, Condominium) in one HTML page.
<body>
<form name="MainForm" method="post">
<input type="radio" name="type" value="Landed">Landed
<input type="radio" name="type" value="Apartment">Apartment
<input type="radio" name="type" value="Condominium">Condominium
</form>
<form name="Landed" method="post"> </form>
<form name="Apartment" method="post"></form>
<form name="Condominium" method="post"></form>
</body>
MainForm has three radio buttons. If Landed radio button is pressed, the Landed form will be loaded together with MainForm. Or other radio buttons are selected, their respective forms are loaded. Before any selection is made, all forms are hidden. Then display only once a radio button is pressed.
What could be the best approach for this? I tried and all forms are loaded altogether.
Thanks
#MainForm? Also note that your HTML is invalid - you cannot have elements outside of the<body>