I am looking to create a system in which users can create a survey. To a large extent, I'm trying to create a form that makes forms. It should be quite extensive and cover input
s, select
s, textarea
s and other form elements.
Right now I am using the template engine with jQuery, but it is getting very dirty and I feel that there is a better way to accomplish this.
The user should be able to add, edit and delete questions and their options (answers). They should also be able to ask the type of question (multiple choice, range slider, short answer, etc.), and it needs to support image loading.
I searched Google, but did not find what I was looking for. Is there an existing js library or framework that I could use to easily add and remove elements in the DOM, tracking element type and hierarchy? Or maybe an API that I could use? I do not want to reinvent the wheel on this.
source share