Survey.JS
There are a lot of solutions for creating surveys on the web. Regarding of these, SurveyJS team are strongly believe that SurveyJS is the right way to go.
Unlike the most other solutions, SurveyJS Project consists of three fully independent parts: run-time SurveyJS library, SurveyJS editor and SurveyJS service for storing and analyzing results. You may stick with the complete solution or use only a library. You may use SurveyJS service to store your results there or store them in your own storage. You may freely use SurveyJS Editor or integrate the Editor into your own web site.