Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 72388

How do I create a variable-number of inputs for a form?

$
0
0

I have a database that stores reference information for various projects that need to be updated on a recurring basis (e.g. project A might have fields "Day completed" and "Cost" while project B might have fields "Location,""Contractor," and "Age"). I am building a web app that needs create an input form for every possible project type when clicked. I have a button that displays a drop-down menu for the different projects, but I don't know how to create the variable-length input form. This should all happen on teh same webpage. Thoughts?

Example: When project A is clicked, a form will appear that displays input options for "Day completed" and "Cost," but when project B is clicked, a form will appear for "Location,""Contractor," and "Age."


Viewing all articles
Browse latest Browse all 72388

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>