With JQuery I can easily do an AJAX post of key value pairs without a form and without a page refresh:
$.ajax({ type: 'POST', url: url, data: { key: value, key: value, etc...} });
But is there a way to post a set of non-form data values with a page refresh, or do I need to take the conventional route of setting up a set of form elements, loading their values, and then submitting the form?
thanks!
You could go the conventional route, but have jQuery build and populate a form dynamically if you wanted to avoid putting a <form> on the page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With