how do I send some data to the server in the .load() function of jquery. I tried this syntax:
$('container').load('path', {key: value});
but for some reason it doesn't work
how do I send some data to the server in the .load() function of jquery. I tried this syntax:
$('container').load('path', {key: value});
but for some reason it doesn't work
.load
uses POST or GET depending on the parameter passed.
If it's an object, it uses POST:
$('container').load('path', {key: value});
Otherwise, it uses GET:
$('container').load('path', 'key=value');
Without any other info in your question, this is all I could come up with to help.
© 2022 - 2024 — McMap. All rights reserved.