I need to Post data to an url without submitting a form and reloading the page but I'm not too good with JQuery. How would I execute something along the lines of this html:
<input type="text" name="name"> <input type="text" name="stuff[]"> <input type="text" name="stuff[]"> <input type="text" name="stuff[]"> <input type="text" name="stuff[]"> <button onclick="send()">send</button> JQuery:
function send() { params= {'name': $('#name').val(), 'stuff': $('#stuff[]').val()}; $.post( "url/test", params ); }