Hello. Please help me solve the problem. Given a page jsfiddle.net/parkito/7eozjym1/1
In general, to send a form, it is enough to specify method (post / get) and action - the actual link to the servlet.
And all inputs from of this form will be sent to the specified servlet.
If you need it in js, then by pressing call the function in which to send an ajax request to the servlet.
To place the code, please use CodePen or similar tool. Thanks you!