Currently, I have a web form with a ton of collapsible divs via JavaScript. There are 10 full forms and only 1 is displayed at any given time. However, my current implementation forces me to have the code for every single form in the HTML file.
I was wondering if anyone could provide me with some PHP or AJAX that will dynamically include the proper form, instead of hard-coding each one. I can provide code snippets or more detail if necessary.