Did you try ajax method of jQuery? -> http://api.jquery.com/jQuery.ajax/
The method that I use well is below.
My some plugin("Notification Pro", "Mass Mailing Pro", etc) uses this simple interface. Because coding method of Javascript and PHP has nothing to do with Q2A, you can study on internet.
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.