Currently, I am developing a simple HTML+JavaScript application where the user must choose between two options using radio buttons. Once a choice is made, either content "A" or content "B" should be displayed beneath the radio buttons.
I am considering the best approach to handle this content. Should I create 2 DIVs, with only one visible depending on the option chosen, or should I use JavaScript to dynamically change the InnerHTML of a single div based on the state of the radio buttons? This application does not involve submitting form data as it's more of a calculation tool.
Thank you for your input! J