SyntaxFix
Write A Post
Hire A Developer
Questions
Use the serialize method:
$.ajax({ ... data: $("#registerSubmit").serialize(), ... })
Docs: serialize()