There is a form with several fields and
<input value="Оставить отзыв" type="submit"/> I click on the button and everything goes to the POST variable. There is also a javascript variable - I just can’t figure out how to send it to POST when I click the "Leave feedback" button. Tried so
$(document).on('submit', 'form', function () { //$.post('/reviews/#leave-review', {'index_id':'1111'}) jQuery.ajax({ url:'/reviews/#leave-review' , type:'POST' , 'a':id_review , success: function(response) { } }); return true; }); The variable does not want to appear in POST.