I have form in nette framework where the form works wel. When I added AJAX it stopped to work propely and then I added functionality to "close" button that the answers will be saved after each other. The form is styled that each questions appears on popup seperatly. The js code problems:
Answers aren't saving values in the database after pushing "close" button.
The Ajax should close the form once it is submitter but right now it opens a form istead.