There is a user profile with different functional tabs (personal information, contacts, work, etc.). In each tab, edit information fields. Decided to send data to the server via Ajax. What can you advise, maybe there are ready-made validators? It is necessary to do as implemented in VK. There, by clicking on the button, the prototype method js is called in which the validation of the form fields and the ajax call is performed.

The point is not even validation, but how to collect all the fields (form names) and send to the server

1 answer 1

JQuery has .serialize () . HTML5 has FormData (already supported by almost everything, caniuse ).