1
To use POST
when using $.load()
, you must pass a JSON object as the second parameter. The second parameter (when it is an object) is treated as data and sent to the backend via a POST request.
Source (Look for ‘Request Method’)
Source:stackexchange.com