My app uses javascript to generate all the HTML for my website. The index.html basically just contains
<div id="menu"></div><div id="content/><div id="content2/>
And the javascript replaces the divs. I find myself doing a lot of repetitive tasks when I need to create a form.
var html = "<form id="form1"> ... </form>";
Is there a good framework to generate HTML forms so that you could do something like
generateForm(<formId>, [{name: "field1", type: button}, {name: "field2", type: input}]);
Or something similar?