The jQuery command $.post is used to "post" PHP variables asynchronously from the current page without reloading or leaving the current page. Data can then be retrieved from the request and used on the current page.
Questions tagged [jquery-post]
196 questions
-2
votes
1 answer
Posting data to same page with jquery
I have a phtml file. In file i have written some html in which there are some inputs and a button. In javascript i am validating the inputs and then posting using jquery like that
url = document.URL;
$.post(url, { name: "John", time: "2pm" }…

MJQ
- 1,778
- 6
- 34
- 60